aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/cache/TempFileCache.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-12-12 17:35:35 +0100
committerSven Gothel <[email protected]>2014-12-12 17:35:35 +0100
commitf26fcc971dc95ffb7033ac9e539a3c0ebb43025a (patch)
tree5105eae0cf7efb853329ed088dc0161462b7c3f6 /src/java/com/jogamp/common/util/cache/TempFileCache.java
parent235a64d1f2354fa15805d1759ff0b46c71338b4f (diff)
TempFileCache/TempJarCache: Fix NPE in DEBUG mode
Diffstat (limited to 'src/java/com/jogamp/common/util/cache/TempFileCache.java')
-rw-r--r--src/java/com/jogamp/common/util/cache/TempFileCache.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/java/com/jogamp/common/util/cache/TempFileCache.java b/src/java/com/jogamp/common/util/cache/TempFileCache.java
index b58ea28..24f0237 100644
--- a/src/java/com/jogamp/common/util/cache/TempFileCache.java
+++ b/src/java/com/jogamp/common/util/cache/TempFileCache.java
@@ -87,8 +87,11 @@ public class TempFileCache {
tmpBaseDir = _tmpBaseDir;
if (DEBUG) {
+ final String tmpBaseDirAbsPath = null != tmpBaseDir ? tmpBaseDir.getAbsolutePath() : null;
System.err.println("TempFileCache: Static Initialization ---------------------------------------------- OK: "+(!staticInitError));
- System.err.println("TempFileCache: Thread: "+Thread.currentThread().getName()+", CL 0x"+Integer.toHexString(TempFileCache.class.getClassLoader().hashCode())+", tempBaseDir "+tmpBaseDir.getAbsolutePath());
+ System.err.println("TempFileCache: Thread: "+Thread.currentThread().getName()+
+ ", CL 0x"+Integer.toHexString(TempFileCache.class.getClassLoader().hashCode())+
+ ", tempBaseDir "+tmpBaseDirAbsPath);
}
if(!staticInitError) {