Modify

Opened 15 years ago

Closed 15 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:

  1. Start JOSM
  2. Load some OSM data
  3. Create new blank WMS layer
  4. Right click on this new layer and deselect "Automatic downloading".
  5. Right click on it again and select "Load WMS layer from file". You have to have previous WMS file.
  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
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)

Fix WMS Error.patch (944 bytes ) - added by xeen 15 years ago.
Additional check if the cached image was initalized properly

Download all attachments as: .zip

Change History (3)

by xeen, 15 years ago

Attachment: Fix WMS Error.patch added

Additional check if the cached image was initalized properly

comment:1 by xeen, 15 years ago

Summary: NullPointerException while loading WMS file in wmsplugin[PATCH] NullPointerException while loading WMS file in wmsplugin

comment:2 by anonymous, 15 years ago

Resolution: fixed
Status: newclosed

Applied in 13471.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.