Modify

Opened 10 years ago

Closed 10 years ago

#2874 closed defect (fixed)

NullPointerException when using "zoom to selection"

Reported by: Cobra Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

After having selcted some Nodes/Ways via search, "zoom to selection" results in a NullPointerException:

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1746
Node Kind: directory
Last Changed Author: stoecker
Last Changed Rev: 1746
Last Changed Date: 2009-07-07 20:51:26 +0200 (Tue, 07 Jul 2009)


Memory Usage: 211 MB / 1016 MB (23 MB allocated, but free)
Java version: 1.6.0_07

Plugins: Intersect_wayPicLayermeasurementmultipolyopenstreetbugsremotecontrolusertoolsutilspluginvalidatorwmsplugin
Plugin Intersect_way Version: 12781
Plugin PicLayer Version: 16302
Plugin measurement Version: 16317
Plugin multipoly Version: ${version.entry.commit.revision}
Plugin openstreetbugs Version: 16294
Plugin remotecontrol Version: 16290
Plugin usertools Version: 14125
Plugin utilsplugin Version: 16162
Plugin validator Version: 16346
Plugin wmsplugin Version: 16351


java.lang.NullPointerException
	at org.openstreetmap.josm.data.osm.Node.getEastNorth(Node.java:43)
	at org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor.visit(BoundingXYVisitor.java:26)
	at org.openstreetmap.josm.data.osm.Node.visit(Node.java:90)
	at org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor.visit(BoundingXYVisitor.java:37)
	at org.openstreetmap.josm.data.osm.Relation.visit(Relation.java:31)
	at org.openstreetmap.josm.actions.AutoScaleAction.getBoundingBox(AutoScaleAction.java:85)
	at org.openstreetmap.josm.actions.AutoScaleAction.actionPerformed(AutoScaleAction.java:61)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
	at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
	at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:229)
	at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2926)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2918)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
	at java.awt.Component.processEvent(Component.java:5818)
	at java.awt.Container.processEvent(Container.java:2058)
	at java.awt.Component.dispatchEventImpl(Component.java:4413)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:697)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:962)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:834)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:661)
	at java.awt.Component.dispatchEventImpl(Component.java:4285)
	at java.awt.Container.dispatchEventImpl(Container.java:2116)
	at java.awt.Window.dispatchEventImpl(Window.java:2440)
	at java.awt.Component.dispatchEvent(Component.java:4243)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

josm runs on Ubuntu 8.04, Sun Java 6

Attachments (0)

Change History (1)

comment:1 Changed 10 years ago by stoecker

Resolution: fixed
Status: newclosed

Fixed in r1747.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.