From d04be0227966a5013434100db751f7da2749195b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ha=CC=8Avard=20Ottestad?= Date: Wed, 6 Mar 2024 11:27:26 +0100 Subject: [PATCH] GH-4861 don't cause OOM exception when throwing IllegalArgumentException --- .../main/java/org/eclipse/rdf4j/sail/nativerdf/ValueStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/ValueStore.java b/core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/ValueStore.java index b981a4eee90..4562a662435 100644 --- a/core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/ValueStore.java +++ b/core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/ValueStore.java @@ -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); } }