Issue 359: Can't decompile Notif Pro 0.31 / Tested on other apk

This commit is contained in:
Felipe Barriga Richards 2013-02-20 15:38:08 +00:00 committed by Connor Tumbleson
parent 43993551bd
commit 9677119324

View File

@ -62,6 +62,11 @@ public class Res9patchStreamDecoder implements ResStreamDecoder {
ImageIO.write(im2, "png", out);
} catch (IOException ex) {
throw new AndrolibException(ex);
} catch (NullPointerException ex) {
// In my case this was triggered because a .png file was
// containing a html document instead of an image.
// This could be more verbose and try to MIME ?
throw new AndrolibException(ex);
}
}