Modify

Opened 15 years ago

Closed 15 years ago

#3180 closed defect (fixed)

Zoom to layer + GPX = NPE

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

Description

When I press "2" key to "zoom to layer" while having "markers from XXX.gpx" as active layer (and only other layers are also similar marker layers, all of them containing some nodes), I got this exception:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 14.0-b16 (Sun Microsystems Inc.)
Main-class: JOSM
Main-Version: 1899 SVN
Main-Date: 2009-08-03T19:37:45.814061Z
Memory Usage: 183 MB / 989 MB (49 MB allocated, but free)
Java version: 1.6.0_14

Plugins: measurement
multipoly
openstreetbugs
remotecontrol
routing
terracer2
utilsplugin
validator
wmsplugin
Plugin measurement Version: 16317
Plugin multipoly Version: 16609
Plugin openstreetbugs Version: 16622
Plugin remotecontrol Version: 16624
Plugin routing Version: 16409
Plugin terracer2 Version: ${version.entry.commit.revision}
Plugin utilsplugin Version: 16628
Plugin validator Version: 16629
Plugin wmsplugin Version: 16599

java.lang.NullPointerException

at org.openstreetmap.josm.actions.AutoScaleAction.getBoundingBox(AutoScaleAction.java:82)
at org.openstreetmap.josm.actions.AutoScaleAction.autoScale(AutoScaleAction.java:63)
at org.openstreetmap.josm.actions.AutoScaleAction.actionPerformed(AutoScaleAction.java:72)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2851)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:229)
at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2928)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2920)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2814)
at java.awt.Component.processEvent(Component.java:6040)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:704)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:969)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:841)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:668)
at java.awt.Component.dispatchEventImpl(Component.java:4502)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Window.dispatchEventImpl(Window.java:2475)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Attachments (0)

Change History (1)

comment:1 by Gubaer, 15 years ago

Resolution: fixed
Status: newclosed

fixed in r1903

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. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.