jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [7/8] git commit: JENA-792 : Fix contains test for non-existent graph.
Date Wed, 01 Oct 2014 10:12:43 GMT
JENA-792 : Fix contains test for non-existent graph.

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/82bc9cca
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/82bc9cca
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/82bc9cca

Branch: refs/heads/master
Commit: 82bc9cca941cb45399eb06e87d04bc3e7d6b89f9
Parents: f61b21d
Author: Andy Seaborne <andy@apache.org>
Authored: Tue Sep 30 23:04:54 2014 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Tue Sep 30 23:04:54 2014 +0100

----------------------------------------------------------------------
 .../java/com/hp/hpl/jena/sparql/core/DatasetGraphCollection.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/82bc9cca/jena-arq/src/main/java/com/hp/hpl/jena/sparql/core/DatasetGraphCollection.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/com/hp/hpl/jena/sparql/core/DatasetGraphCollection.java
b/jena-arq/src/main/java/com/hp/hpl/jena/sparql/core/DatasetGraphCollection.java
index 893b2b8..8de21f3 100644
--- a/jena-arq/src/main/java/com/hp/hpl/jena/sparql/core/DatasetGraphCollection.java
+++ b/jena-arq/src/main/java/com/hp/hpl/jena/sparql/core/DatasetGraphCollection.java
@@ -61,7 +61,7 @@ public abstract class DatasetGraphCollection extends DatasetGraphBaseFind
     protected Iter<Quad> findInSpecificNamedGraph(Node g, Node s, Node p , Node o)
     {
         Graph graph = fetchGraph(g) ;
-        if ( g == null )
+        if ( graph == null )
             return Iter.nullIter() ;
         return triples2quads(g, graph.find(s, p, o)) ;
     }


Mime
View raw message