In GraphicalView, there are lines like this:
fitZoomImage =
BitmapFactory.decodeStream(getClass().getResourceAsStream("image/zoom-1.png"));
The problem occurs when someone extends GraphicalView. Now, getClass() resolves
to the class doing the extending, so getResourceAsStream cannot find the
requested file (as it exists in GraphicalView's resources, not in the extending
class's) so it returns null, which in turn causes problems later.
Instead, IMHO the line should look like this:
BitmapFactory.decodeStream(GraphicalView.class.getResourceAsStream("image/zoom-1
.png"));
Original issue reported on code.google.com by candrews...@gmail.com on 25 Jul 2011 at 10:28
Original issue reported on code.google.com by
candrews...@gmail.com
on 25 Jul 2011 at 10:28