You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2017/06/13 09:15:50 UTC

jena git commit: Make it easier to set breakpoints on error conditions.

Repository: jena
Updated Branches:
  refs/heads/master 6a3f439bb -> 69756463c


Make it easier to set breakpoints on error conditions.

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

Branch: refs/heads/master
Commit: 69756463c7b663727f01d8a807af360171f21baa
Parents: 6a3f439
Author: Andy Seaborne <an...@apache.org>
Authored: Tue Jun 13 10:15:25 2017 +0100
Committer: Andy Seaborne <an...@apache.org>
Committed: Tue Jun 13 10:15:25 2017 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/jena/sparql/core/Quad.java | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/69756463/jena-arq/src/main/java/org/apache/jena/sparql/core/Quad.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/core/Quad.java b/jena-arq/src/main/java/org/apache/jena/sparql/core/Quad.java
index 3494c7b..e8fde57 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/core/Quad.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/core/Quad.java
@@ -63,10 +63,14 @@ public class Quad implements Serializable
     public Quad(Node g, Node s, Node p, Node o)
     {
         // Null means it's a triple really.
-        //if ( g == null ) throw new UnsupportedOperationException("Quad: graph cannot be null");
-        if ( s == null ) throw new UnsupportedOperationException("Quad: subject cannot be null");
-        if ( p == null ) throw new UnsupportedOperationException("Quad: predicate cannot be null");
-        if ( o == null ) throw new UnsupportedOperationException("Quad: object cannot be null");
+//        if ( g == null )
+//            throw new UnsupportedOperationException("Quad: graph cannot be null");
+        if ( s == null )
+            throw new UnsupportedOperationException("Quad: subject cannot be null");
+        if ( p == null )
+            throw new UnsupportedOperationException("Quad: predicate cannot be null");
+        if ( o == null )
+            throw new UnsupportedOperationException("Quad: object cannot be null");
         this.graph = g ;
         this.subject = s ;
         this.predicate = p ;