Index: trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java	(revision 8461)
+++ trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java	(revision 8462)
@@ -306,4 +306,7 @@
 
     private boolean loadObject() {
+        if (attributes == null) {
+            attributes = new CacheEntryAttributes();
+        }
         try {
             // if we have object in cache, and host doesn't support If-Modified-Since nor If-None-Match
