DatasetGraphBase.deleteAny(null, ,,) cause NPE
----------------------------------------------

                 Key: JENA-32
                 URL: https://issues.apache.org/jira/browse/JENA-32
             Project: Jena
          Issue Type: Bug
          Components: ARQ
            Reporter: Andy Seaborne
            Assignee: Andy Seaborne


See 
http://mail-archives.apache.org/mod_mbox/incubator-jena-users/201101.mbox/%[email protected]%3E

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.

Reply via email to