clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1531398 - /clerezza/trunk/rdf.jena.tdb.storage/src/main/java/org/apache/clerezza/rdf/jena/tdb/storage/TdbTcProvider.java
Date Fri, 11 Oct 2013 19:35:50 GMT
Author: reto
Date: Fri Oct 11 19:35:50 2013
New Revision: 1531398

URL: http://svn.apache.org/r1531398
Log:
CLEREZZA-792:avoiding NullPointer on graphs

Modified:
    clerezza/trunk/rdf.jena.tdb.storage/src/main/java/org/apache/clerezza/rdf/jena/tdb/storage/TdbTcProvider.java

Modified: clerezza/trunk/rdf.jena.tdb.storage/src/main/java/org/apache/clerezza/rdf/jena/tdb/storage/TdbTcProvider.java
URL: http://svn.apache.org/viewvc/clerezza/trunk/rdf.jena.tdb.storage/src/main/java/org/apache/clerezza/rdf/jena/tdb/storage/TdbTcProvider.java?rev=1531398&r1=1531397&r2=1531398&view=diff
==============================================================================
--- clerezza/trunk/rdf.jena.tdb.storage/src/main/java/org/apache/clerezza/rdf/jena/tdb/storage/TdbTcProvider.java
(original)
+++ clerezza/trunk/rdf.jena.tdb.storage/src/main/java/org/apache/clerezza/rdf/jena/tdb/storage/TdbTcProvider.java
Fri Oct 11 19:35:50 2013
@@ -229,7 +229,7 @@ public class TdbTcProvider implements We
         MGraph mGraph = getMGraph(tcDir);
         mGraph.addAll(triples);
         Graph result = mGraph.getGraph();
-        
+        TDB.sync(dir2Dataset.get(tcDir));
         graphMap.put(name, result);
         return result;
     }
@@ -405,6 +405,7 @@ public class TdbTcProvider implements We
         synchronized(dir2Dataset) {
             for (Map.Entry<File,Dataset> entry : dir2Dataset.entrySet()) {
                 Lock l = dir2Lock.get(entry.getKey());
+                if (l == null) return;
                 l.lock();
                 try {
                     TDB.sync(entry.getValue());



Mime
View raw message