﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2176	[PATCH] NullPointerException while loading WMS file in wmsplugin	anonymous	framm	"Steps to reproduce:[[br]]
1. Start JOSM[[br]]
2. Load some OSM data[[br]]
3. Create new blank WMS layer[[br]]
4. Right click on this new layer and deselect ""Automatic downloading"".[[br]]
5. Right click on it again and select ""Load WMS layer from file"".  You have to have previous WMS file.[[br]]
6. Upon loading the error occurs. JOSM tries to disable the wms plugin, but it can't. A never ending series of error dialogs follows. The only way out of this, is to kill the process.


Path: trunk[[br]]
URL: http://josm.openstreetmap.de/svn/trunk  [[br]]
Repository Root: http://josm.openstreetmap.de/svn  [[br]]
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b [[br]]
Revision: 1387[[br]]
Node Kind: directory[[br]]
Last Changed Author: ce[[br]]
Last Changed Rev: 1387[[br]]
Last Changed Date: 2009-02-09 01:46:21 +0100 (Mon, 09 Feb 2009)[[br]]

Java version: 1.5.0_04[[br]]
Plugins: DirectUpload;utilsplugin;validator;wmsplugin[[br]]
Plugin DirectUpload Version: 13634[[br]]
Plugin utilsplugin Version: 13575[[br]]
Plugin validator Version: 13598[[br]]
Plugin wmsplugin Version: 13648[[br]]

java.lang.NullPointerException
	at wmsplugin.GeorefImage.paint(GeorefImage.java:59)
	at wmsplugin.WMSLayer.paint(WMSLayer.java:148)
	at org.openstreetmap.josm.gui.MapView.paint(MapView.java:270)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at javax.swing.JLayeredPane.paint(Unknown Source)
	at javax.swing.JComponent.paintChildren(Unknown Source)
	at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
	at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
	at javax.swing.JComponent.paint(Unknown Source)
	at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
	at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
	at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
	at java.awt.Container.paint(Unknown Source)
	at sun.awt.RepaintArea.paintComponent(Unknown Source)
	at sun.awt.RepaintArea.paint(Unknown Source)
	at sun.awt.windows.WComponentPeer.handleEvent(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.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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	critical		unspecified	tested	fixed		
