﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8743	NPE in PicLayer plugin when exiting JOSM	LM_1	Larry0ua	"What steps will reproduce the problem?
 1. Load a picture with PicLayer
 2. Manipulate it
 3. Delete it

What is the expected result?
* no error
What happens instead?
* error message appears
Please provide any additional information below. Attach a screenshot if
possible.

{{{
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2013-05-08 01:34:29
Last Changed Author: stoecker
Revision: 5939
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2013-05-07 14:05:08 +0200 (Tue, 07 May 2013)
Last Changed Rev: 5939

Identification: JOSM/1.5 (5939 en) Windows 7 64-Bit
Memory Usage: 661 MB / 910 MB (147 MB allocated, but free)
Java version: 1.7.0_01, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
VM arguments: [-Xmx1024M]

Plugin: OpeningHoursEditor (29435)
Plugin: PicLayer (29531)
Plugin: RoadSigns (29435)
Plugin: Tracer (29435)
Plugin: buildings_tools (29435)
Plugin: czechaddress (29435)
Plugin: download_along (29435)
Plugin: geochat (29592)
Plugin: gpsblam (29435)
Plugin: imagery-xml-bounds (29461)
Plugin: multipoly-convert (29435)
Plugin: openstreetbugs (29435)
Plugin: osmarender (29435)
Plugin: reltoolbox (29535)
Plugin: routes (29435)

java.lang.NullPointerException
	at org.openstreetmap.josm.plugins.piclayer.PicLayerPlugin.layerRemoved(PicLayerPlugin.java:171)
	at org.openstreetmap.josm.gui.MapView.fireLayerRemoved(MapView.java:176)
	at org.openstreetmap.josm.gui.MapView.removeLayer(MapView.java:414)
	at org.openstreetmap.josm.Main.removeLayer(Main.java:296)
	at org.openstreetmap.josm.Main.exitJosm(Main.java:755)
	at org.openstreetmap.josm.gui.MainApplication$1.windowClosing(MainApplication.java:86)
	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$000(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	normal		Plugin piclayer		fixed	template_report	
