Author: andy
Date: Mon Dec  9 12:13:40 2013
New Revision: 1549560

URL: http://svn.apache.org/r1549560
Log:
JENA-609

Modified:
    
jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/main/iterator/QueryIterGraph.java

Modified: 
jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/main/iterator/QueryIterGraph.java
URL: 
http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/main/iterator/QueryIterGraph.java?rev=1549560&r1=1549559&r2=1549560&view=diff
==============================================================================
--- 
jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/main/iterator/QueryIterGraph.java
 (original)
+++ 
jena/trunk/jena-arq/src/main/java/com/hp/hpl/jena/sparql/engine/main/iterator/QueryIterGraph.java
 Mon Dec  9 12:13:40 2013
@@ -172,9 +172,9 @@ public class QueryIterGraph extends Quer
         // Create the iterator - or return null if there can't be any results.
         protected static QueryIterator buildIterator(Binding binding, Node 
graphNode, OpGraph opGraph, ExecutionContext outerCxt)
         {
-            if ( !graphNode.isURI() )
+            if ( !graphNode.isURI() && !graphNode.isBlank() )
                 // e.g. variable bound to a literal or blank node.
-                throw new 
ARQInternalErrorException("QueryIterGraphInner.buildIterator") ;
+                throw new 
ARQInternalErrorException("QueryIterGraphInner.buildIterator: Not a URI or 
balnk node: "+graphNode) ;
             
             // Think about avoiding substitution.
             // If the subpattern does not involve the vars from the binding, 
avoid the substitute.  


Reply via email to