jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rve...@apache.org
Subject [41/50] [abbrv] jena git commit: Cope with null pointers.
Date Wed, 09 Sep 2015 07:44:52 GMT
Cope with null pointers.

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

Branch: refs/heads/JENA-507
Commit: 699306160076a99fbf4d617f31e8a84cadc4077e
Parents: 964e10f
Author: Andy Seaborne <andy@apache.org>
Authored: Sat Sep 5 21:46:49 2015 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Sat Sep 5 21:46:49 2015 +0100

----------------------------------------------------------------------
 jena-arq/src/main/java/org/apache/jena/sparql/util/VarUtils.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/69930616/jena-arq/src/main/java/org/apache/jena/sparql/util/VarUtils.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/util/VarUtils.java b/jena-arq/src/main/java/org/apache/jena/sparql/util/VarUtils.java
index e2e73e6..166293d 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/util/VarUtils.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/util/VarUtils.java
@@ -61,6 +61,8 @@ public class VarUtils {
 
     // Name to avoid erasure clash
     public static void addVarNodes(Collection<Var> acc, Collection<Node> nodes)
{
+        if ( nodes == null )
+            return ;
         for ( Node n : nodes )
             addVar(acc, n) ;
     }


Mime
View raw message