incubator-jena-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Seaborne (JIRA)" <>
Subject [jira] Created: (JENA-32) DatasetGraphBase.deleteAny(null, ,,) cause NPE
Date Sat, 22 Jan 2011 19:54:44 GMT
DatasetGraphBase.deleteAny(null, ,,) cause NPE

                 Key: JENA-32
             Project: Jena
          Issue Type: Bug
          Components: ARQ
            Reporter: Andy Seaborne
            Assignee: Andy Seaborne


Node.ANY is also broken.

DatasetGraph is a DatasetGraphCollection

dataSource.asDatasetGraph().add(new Quad(Quad.defaultGraphIRI, subject, predicate, object));
dataSource.asDatasetGraph().deleteAny(Node.ANY, subject, null, null);

DatasetGraphBase.deleteAny ==> 
   find(g, s, p, o) ;
   => g = null for the default graph (aside ?? should be Quad.defaultGraphIRI)
   =>delete attempts to get graph null.

1/ delete(quad) in DatasetGraphCollection => fetchGraph with a null
2/ Think about the find/4 => null vs URI for dft graph.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message