mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-18 10:18:07 +00:00
fixed Cache viewer when cache directory does not exist (browser not installed)
This commit is contained in:
@@ -34,6 +34,9 @@ public class FirefoxCache implements CacheImplementation {
|
||||
@Override
|
||||
public void refresh() {
|
||||
File dir = getCacheDirectory();
|
||||
if(dir==null){
|
||||
return;
|
||||
}
|
||||
File cacheMapFile = new File(dir, "_CACHE_MAP_");
|
||||
try {
|
||||
map = new CacheMap(cacheMapFile);
|
||||
@@ -105,6 +108,9 @@ public class FirefoxCache implements CacheImplementation {
|
||||
if (profileDir != null) {
|
||||
cacheDir = new File(profileDir, "Cache");
|
||||
}
|
||||
if(!cacheDir.exists()){
|
||||
return null;
|
||||
}
|
||||
return cacheDir;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user