fixed Cache viewer when cache directory does not exist (browser not installed)

This commit is contained in:
Jindra Petk
2013-09-11 19:51:27 +02:00
parent cf003bc0b1
commit 1357bc9fe6
3 changed files with 16 additions and 4 deletions

View File

@@ -147,10 +147,13 @@ public class LoadFromCacheFrame extends AppFrame implements ActionListener {
}
entries = new ArrayList<>();
for (CacheImplementation c : caches) {
for (CacheEntry en : c.getEntries()) {
String contentType = en.getHeader("Content-Type");
if ("application/x-shockwave-flash".equals(contentType)) {
entries.add(en);
List<CacheEntry> list=c.getEntries();
if(list!=null){
for (CacheEntry en : c.getEntries()) {
String contentType = en.getHeader("Content-Type");
if ("application/x-shockwave-flash".equals(contentType)) {
entries.add(en);
}
}
}
}