Skip to content

Commit

Permalink
GH-4861 don't cause OOM exception when throwing IllegalArgumentExcept…
Browse files Browse the repository at this point in the history
…ion (#4924)
  • Loading branch information
hmottestad authored Mar 6, 2024
2 parents cb40e67 + d04be02 commit 23f3e8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ private NativeValue data2value(int id, byte[] data) throws IOException {
case LITERAL_VALUE:
return data2literal(id, data);
default:
throw new IllegalArgumentException("Namespaces cannot be converted into values: " + data2namespace(data));
throw new IllegalArgumentException("Invalid type " + data[0] + " for value with id " + id);
}
}

Expand Down

0 comments on commit 23f3e8c

Please sign in to comment.