﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3752	Unhandled exception while trying to reproduce a bug ;) (related to deleting nodes)	balrog-kun	balrog-kun	"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)
"	defect	needinfo	normal		Core	latest		exception, delete	
