Opened 16 years ago
Closed 16 years ago
#2176 closed defect (fixed)
[PATCH] NullPointerException while loading WMS file in wmsplugin
Reported by: | anonymous | Owned by: | framm |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | unspecified | Version: | tested |
Keywords: | Cc: |
Description
Steps to reproduce:
- Start JOSM
- Load some OSM data
- Create new blank WMS layer
- Right click on this new layer and deselect "Automatic downloading".
- Right click on it again and select "Load WMS layer from file". You have to have previous WMS file.
- 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
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1387
Node Kind: directory
Last Changed Author: ce
Last Changed Rev: 1387
Last Changed Date: 2009-02-09 01:46:21 +0100 (Mon, 09 Feb 2009)
Java version: 1.5.0_04
Plugins: DirectUpload;utilsplugin;validator;wmsplugin
Plugin DirectUpload Version: 13634
Plugin utilsplugin Version: 13575
Plugin validator Version: 13598
Plugin wmsplugin Version: 13648
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)
Attachments (1)
Change History (3)
by , 16 years ago
Attachment: | Fix WMS Error.patch added |
---|
comment:1 by , 16 years ago
Summary: | NullPointerException while loading WMS file in wmsplugin → [PATCH] NullPointerException while loading WMS file in wmsplugin |
---|
Additional check if the cached image was initalized properly