Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#3752 closed defect (duplicate)

Unhandled exception while trying to reproduce a bug ;) (related to deleting nodes)

Reported by: balrog-kun Owned by: balrog-kun
Priority: normal Milestone:
Component: Core Version: latest
Keywords: exception, delete Cc:

Description (last modified by stoecker)

So the original bug was that I saved a .osm file with all kinds of un-uploaded changes in it and later JOSM would not load the file because a deleted way contained a non-existent node with negative id, the xml snippet looked something like

<way action="delete" whatever...>

<nd ref="-26803" />
...

</way>

But! now I was just trying to reproduce that on an isolated test-case, and am getting an unhandled exception, below are the steps to reproduce, as well as the backtrace:

  1. download an area with at least one way
  2. draw a new node in the middle of that way
  3. add new tag "x=y" on the node
  4. delete that way
  5. delete layer
  6. try to alt-tab, or do something else and the following exception pops up:

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 2300
Node Kind: directory
Last Changed Author: jttt
Last Changed Rev: 2300
Last Changed Date: 2009-10-18 20:19:40 +0200 (Sun, 18 Oct 2009)

Memory Usage: 162 MB / 433 MB (111 MB allocated, but free)
Java version: 1.6.0

Plugins: PicLayermultipolyplastic_lafterracerutilspluginwmsplugin
Plugin plastic_laf Version: 14016
Plugin PicLayer Version: 17327
Plugin multipoly Version: ${version.entry.commit.revision}
Plugin terracer Version: 17874
Plugin utilsplugin Version: 17707
Plugin wmsplugin Version: 17817

java.lang.NullPointerException

at org.openstreetmap.josm.actions.mapmode.DeleteAction.updateCursor(DeleteAction.java:178)
at org.openstreetmap.josm.actions.mapmode.DeleteAction.eventDispatched(DeleteAction.java:376)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2360)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2252)
at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2210)
at java.awt.Component.dispatchEventImpl(Component.java:4308)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:693)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:958)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:830)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:657)
at java.awt.Component.dispatchEventImpl(Component.java:4282)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
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)

Attachments (0)

Change History (3)

comment:1 by stoecker, 15 years ago

Description: modified (diff)
Owner: changed from team to balrog-kun
Status: newneedinfo

Are you still able to produce that exception?

comment:2 by jttt, 15 years ago

Resolution: duplicate
Status: needinfoclosed

The exception is duplicate of #3792 and I'm unable to reproduce the non-existent node problem, so I'm closing this for now.

comment:3 by anonymous, 15 years ago

Closed as duplicate of #3792.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain balrog-kun.
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.