From af2daa262b1880300000b87dfe12ac91a0e01c3d Mon Sep 17 00:00:00 2001 From: supergitacc Date: Wed, 4 Apr 2018 15:14:10 +0200 Subject: [PATCH] Bugfix Tutorial 6: Missing "/" at the end of an URI resulted in a NullPointerException Without "/" at the end of the URI of JohnSmith (http://somewhere/JohnSmith/) an exception occurs in line 51 because no resource vcard could be found. The exception was: "Exception in thread "main" java.lang.NullPointerException". Adding the slash at the end fixes the issue because --- jena-core/src-examples/jena/examples/rdf/Tutorial06.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jena-core/src-examples/jena/examples/rdf/Tutorial06.java b/jena-core/src-examples/jena/examples/rdf/Tutorial06.java index 62da3e0b2ba..d6460302aa6 100644 --- a/jena-core/src-examples/jena/examples/rdf/Tutorial06.java +++ b/jena-core/src-examples/jena/examples/rdf/Tutorial06.java @@ -29,7 +29,7 @@ public class Tutorial06 extends Object { static final String inputFileName = "vc-db-1.rdf"; - static final String johnSmithURI = "http://somewhere/JohnSmith"; + static final String johnSmithURI = "http://somewhere/JohnSmith/"; public static void main (String args[]) { // create an empty model