clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject git commit: CLEREZZA-933: Added null check
Date Wed, 30 Jul 2014 14:32:13 GMT
Repository: clerezza
Updated Branches:
  refs/heads/master 981bfd20c -> 80e95cd83


CLEREZZA-933: Added null check


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

Branch: refs/heads/master
Commit: 80e95cd83ec41ff3a57f5d95935d9f7d2622b402
Parents: 981bfd2
Author: Minto van der Sluis <misl@apache.org>
Authored: Wed Jul 30 16:31:55 2014 +0200
Committer: Minto van der Sluis <misl@apache.org>
Committed: Wed Jul 30 16:31:55 2014 +0200

----------------------------------------------------------------------
 .../apache/clerezza/rdf/virtuoso/storage/access/DataAccess.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/clerezza/blob/80e95cd8/rdf.virtuoso.storage/src/main/java/org/apache/clerezza/rdf/virtuoso/storage/access/DataAccess.java
----------------------------------------------------------------------
diff --git a/rdf.virtuoso.storage/src/main/java/org/apache/clerezza/rdf/virtuoso/storage/access/DataAccess.java
b/rdf.virtuoso.storage/src/main/java/org/apache/clerezza/rdf/virtuoso/storage/access/DataAccess.java
index e0c891d..56fd298 100644
--- a/rdf.virtuoso.storage/src/main/java/org/apache/clerezza/rdf/virtuoso/storage/access/DataAccess.java
+++ b/rdf.virtuoso.storage/src/main/java/org/apache/clerezza/rdf/virtuoso/storage/access/DataAccess.java
@@ -909,6 +909,9 @@ public class DataAccess {
 	}
 	
 	private Resource objectToResource(Object o){
+		if ( o == null ) {
+			return null;
+		}
 		return buildObject(o);
 	}
 	


Mime
View raw message