@@ -46,10 +46,14 @@ // when the image is retrieved from the cache. return true; } protected ImageDecoder getDecoder() { + if (imagefile == null) { + return null; + } + InputStream is; try { is = new BufferedInputStream(new FileInputStream(imagefile)); } catch (FileNotFoundException e) { return null;