#21 Exception if no start image

SpatialView
open
Matic Petek
5
2012-12-18
2006-06-04
Matic Petek
No

If you did not draw any picture yet in Spatial view and
you click on "Zoom via rectangle" button, application
will crash with the following stack trace:

Exception in thread "AWT-EventQueue-0"
java.lang.NullPointerException
at
org.GeoRaptor.SpatialView.MapPanel.createBufferImage(Unknown
Source)
at
org.GeoRaptor.SpatialView.SpatialViewPanel.zoomBoundsButton_actionPerformed(Unknown
Source)
at
org.GeoRaptor.SpatialView.SpatialViewPanel.access$400(Unknown
Source)
at
org.GeoRaptor.SpatialView.SpatialViewPanel$5.actionPerformed(Unknown
Source)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at
javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:269)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:23

Discussion