You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2011/01/22 20:54:44 UTC

[jira] Created: (JENA-32) DatasetGraphBase.deleteAny(null, ,,) cause NPE

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/%3C4D3AEA32.9010406@mysema.com%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.


[jira] Commented: (JENA-32) DatasetGraphBase.deleteAny(null, ,,) cause NPE

Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JENA-32?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985409#action_12985409 ] 

Andy Seaborne commented on JENA-32:
-----------------------------------

Fixed in SF SVN

Confusion over Quad.tripleInQuad and Quad.defaultGraphIRI

(see also JENA-33)

> 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/%3C4D3AEA32.9010406@mysema.com%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.


[jira] Closed: (JENA-32) DatasetGraphBase.deleteAny(null, ,,) cause NPE

Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne closed JENA-32.
-----------------------------


> 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/%3C4D3AEA32.9010406@mysema.com%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.


[jira] Resolved: (JENA-32) DatasetGraphBase.deleteAny(null, ,,) cause NPE

Posted by "Andy Seaborne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JENA-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne resolved JENA-32.
-------------------------------

    Resolution: Fixed

> 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/%3C4D3AEA32.9010406@mysema.com%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.