Modify

Opened 17 years ago

Closed 16 years ago

#424 closed defect (fixed)

SlippyMap plugin causes exception when layer is removed

Reported by: anonymous Owned by: framm
Priority: minor Milestone:
Component: Core Version: latest
Keywords: Cc: JohannesRudolph

Description

I have the SlippyMap plugin installed.
I opened josm and downloaded my area using a bookmark.
Next I delete the slippy map layer using the layers list.
Every time I click on the map using the right mouse button I get:

Path: josm
URL: http://www.openstreetmap.de/svn/josm
Repository Root: http://www.openstreetmap.de/svn/josm
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 401
Node Kind: directory
Last Changed Author: framm
Last Changed Rev: 401
Last Changed Date: 2007-10-17 23:53:50 +0200 (Wed, 17 Oct 2007)

java.lang.NullPointerException

at slippymap.SlippyMapLayer.getTileForPixelpos(Unknown Source)
at slippymap.SlippyMapLayer$5$1.mouseClicked(Unknown Source)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(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.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)

Attachments (0)

Change History (4)

comment:1 by anonymous, 16 years ago

Resolution: worksforme
Status: newclosed

Not reproducable. Reopen bug if still existing in new version with new plugins.

comment:2 by JohannesRudolph, 16 years ago

Cc: JohannesRudolph added
Resolution: worksforme
Status: closedreopened

It happens if the current map view is outside of the expected range. Most cases it happens is when you before deleted all the layers. A bug (#1483) automatically creates a new map which shows some irregular region the slippymap plugin can't cope with.

There are duplicates of this error: #556,#1484,#1554,#1574.

comment:3 by JohannesRudolph, 16 years ago

I found no possibility to provoke this bug anymore having the solution given in #1483 in place. So we could probably close this bug if the patch from #1483 is committed.

comment:4 by anonymous, 16 years ago

Resolution: fixed
Status: reopenedclosed

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.