From 55efab1b098567bf07ea61c8b4f51643e8edc8ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Wed, 11 Sep 2013 22:15:45 +0200 Subject: [PATCH] Issue #383 fixed Cache viewer when cache directory of Firefox does not exist --- trunk/src/com/jpexs/browsers/cache/firefox/FirefoxCache.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trunk/src/com/jpexs/browsers/cache/firefox/FirefoxCache.java b/trunk/src/com/jpexs/browsers/cache/firefox/FirefoxCache.java index d832c5be0..e25835dba 100644 --- a/trunk/src/com/jpexs/browsers/cache/firefox/FirefoxCache.java +++ b/trunk/src/com/jpexs/browsers/cache/firefox/FirefoxCache.java @@ -108,6 +108,9 @@ public class FirefoxCache implements CacheImplementation { if (profileDir != null) { cacheDir = new File(profileDir, "Cache"); } + if(cacheDir == null){ + return null; + } if(!cacheDir.exists()){ return null; }