src/share/classes/sun/awt/image/FileImageSource.java

Print this page

        

*** 46,55 **** --- 46,59 ---- // 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;