commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [3/6] incubator-commonsrdf git commit: handle null as null
Date Mon, 04 Jul 2016 15:56:20 GMT
handle null as null


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

Branch: refs/heads/jena
Commit: e355e187019aaba12e4a1046ad404f8401a9322a
Parents: 42e36d0
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Mon Jul 4 16:55:10 2016 +0100
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Mon Jul 4 16:55:10 2016 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/commons/rdf/jena/JenaCommonsRDF.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/e355e187/jena/src/main/java/org/apache/commons/rdf/jena/JenaCommonsRDF.java
----------------------------------------------------------------------
diff --git a/jena/src/main/java/org/apache/commons/rdf/jena/JenaCommonsRDF.java b/jena/src/main/java/org/apache/commons/rdf/jena/JenaCommonsRDF.java
index 6fc280c..b3999ec 100644
--- a/jena/src/main/java/org/apache/commons/rdf/jena/JenaCommonsRDF.java
+++ b/jena/src/main/java/org/apache/commons/rdf/jena/JenaCommonsRDF.java
@@ -58,6 +58,9 @@ public class JenaCommonsRDF {
      * create a copy using Jena objects. 
      */
     public static Node toJena(RDFTerm term) {
+    	if (term == null) { 
+    		return null;
+    	}
         if ( term instanceof JenaNode )
             return ((JenaNode)term).asJenaNode() ;
         


Mime
View raw message