﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12482	JOSM crashes on exit	heilbron	jBeata	"==== What steps will reproduce the problem?
1. Have JOSM running including the ImproveOSM plugin
2. Exit JOSM
3. JOSM will crash

==== What is the expected result?

Exit without crash

==== What happens instead?

JOSM crashes.

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-01-06 17:30:31 +0100 (Wed, 06 Jan 2016)
Build-Date:2016-01-06 16:32:31
Revision:9329
Relative:URL: ^/trunk

Identification: JOSM/1.5 (9329 de) Windows 8.1 64-Bit
Memory Usage: 152 MB / 494 MB (39 MB allocated, but free)
Java version: 1.8.0_31, Oracle Corporation, Java HotSpot(TM) Client VM

Plugins:
- FixAddresses (31772)
- HouseNumberTaggingTool (31772)
- ImproveOsm (24)
- buildings_tools (31895)
- download_along (31772)
- imagery_offset_db (31895)
- log4j (31895)
- osmarender (31772)
- plastic_laf (31772)
- print (31895)
- public_transport (31895)
- reverter (31926)
- tag2link (31910)
- tageditor (31772)
- terracer (31895)
- turnlanes (31772)
- turnrestrictions (31895)
- utilsplugin2 (32018)
- wikipedia (32003)

Last errors/warnings:
- E: No tagging preset submenu for   
- E: No tagging preset submenu for   
- E: No tagging preset submenu for   
- E: No tagging preset submenu for   
- E: java.lang.NullPointerException

java.lang.NullPointerException
	at org.openstreetmap.josm.plugins.improveosm.ImproveOsmPlugin.layerRemoved(ImproveOsmPlugin.java:162)
	at org.openstreetmap.josm.gui.MapView.fireLayerRemoved(MapView.java:216)
	at org.openstreetmap.josm.gui.MapView.removeLayer(MapView.java:520)
	at org.openstreetmap.josm.Main.removeLayer(Main.java:529)
	at org.openstreetmap.josm.Main.exitJosm(Main.java:1094)
	at org.openstreetmap.josm.gui.MainApplication$1.windowClosing(MainApplication.java:112)
	at java.awt.AWTEventMulticaster.windowClosing(Unknown Source)
	at java.awt.Window.processWindowEvent(Unknown Source)
	at javax.swing.JFrame.processWindowEvent(Unknown Source)
	at java.awt.Window.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

}}}
"	defect	closed	minor		Plugin ImproveOsm	tested	othersoftware	template_report github	
