Skip to content

Commit 23f3e8c

Browse files
authored
GH-4861 don't cause OOM exception when throwing IllegalArgumentException (#4924)
2 parents cb40e67 + d04be02 commit 23f3e8c

File tree

1 file changed

+1
-1
lines changed
  • core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf

1 file changed

+1
-1
lines changed

core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/ValueStore.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ private NativeValue data2value(int id, byte[] data) throws IOException {
533533
case LITERAL_VALUE:
534534
return data2literal(id, data);
535535
default:
536-
throw new IllegalArgumentException("Namespaces cannot be converted into values: " + data2namespace(data));
536+
throw new IllegalArgumentException("Invalid type " + data[0] + " for value with id " + id);
537537
}
538538
}
539539

0 commit comments

Comments
 (0)