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 2014/12/16 18:21:40 UTC

jena git commit: Cope when no directory specified

Repository: jena
Updated Branches:
  refs/heads/master 17a1948dd -> 062240a79


Cope when no directory specified


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

Branch: refs/heads/master
Commit: 062240a7993fe33838ac86f100c77a1bc71e1457
Parents: 17a1948
Author: Andy Seaborne <an...@apache.org>
Authored: Tue Dec 16 17:21:23 2014 +0000
Committer: Andy Seaborne <an...@apache.org>
Committed: Tue Dec 16 17:21:23 2014 +0000

----------------------------------------------------------------------
 .../src/main/java/com/hp/hpl/jena/tdb/base/file/Location.java     | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/062240a7/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/base/file/Location.java
----------------------------------------------------------------------
diff --git a/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/base/file/Location.java b/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/base/file/Location.java
index 641ab3b..0f77c21 100644
--- a/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/base/file/Location.java
+++ b/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/base/file/Location.java
@@ -60,6 +60,9 @@ public class Location {
 
     /** Return a location for a directory on disk */
     static public Location create(String directoryName) {
+        if ( directoryName == null )
+            // Fresh, anonymous, memory area 
+            return mem() ; 
         Location loc = new Location(directoryName) ;
         return loc ;
     }