Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Jena 2.10.1
-
None
Description
When I run the following code snippet after having loaded the attached ttl file, I get a NullPointerException @ com.hp.hpl.jena.ontology.impl.OntResourceImpl#getRDFType(boolean direct) - Line 833
Resource bob = model.getResource("http://example.org/bob"); OntResource ontBob = bob.as(OntResource.class); ontBob.getRDFType()
Upon inspection, it appears as though the code is not checking to see if the iterator is null, before calling the close() method