Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#6812 closed defect (fixed)

[Patch] NPE when clicking in TMS layer

Reported by: Don-vip Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: template_report Cc:

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. Launch JOSM
  2. Select Imagery -> OpenStreetMap (Mapnik)
  3. Left-click anywhere in the TMS layer

What is the expected result? nothing

What happens instead? An error message.

Please find a patch that resolves this issue.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2011-09-09 01:31:58
Last Changed Author: simon04
Revision: 4410
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2011-09-08 17:00:04 +0200 (Thu, 08 Sep 2011)
Last Changed Rev: 4410

Identification: JOSM/1.5 (4410 fr)
Memory Usage: 154 MB / 3729 MB (114 MB allocated, but free)
Java version: 1.7.0, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Operating system: Windows 7

Plugin: cadastre-fr (26606)
Plugin: epci-fr (26605)
Plugin: licensechange (26606)
Plugin: openstreetbugs (26606)
Plugin: photo_geotagging (26606)
Plugin: restart (26606)

java.lang.NullPointerException
	at org.openstreetmap.josm.gui.layer.TMSLayer$12$1.mouseClicked(TMSLayer.java:499)
	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.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)

Attachments (1)

patch.diff (864 bytes ) - added by Don-vip 13 years ago.

Download all attachments as: .zip

Change History (8)

by Don-vip, 13 years ago

Attachment: patch.diff added

comment:1 by Don-vip, 13 years ago

Description: modified (diff)
Summary: NPE when clicking in TMS layer[Patch] NPE when clicking in TMS layer

comment:2 by bastiK, 13 years ago

Resolution: fixed
Status: newclosed

In [4417/josm]:

applied #6812 - NPE when clicking in TMS layer (patch by Don-vip)

comment:3 by Don-vip, 13 years ago

Ticket #6854 has been marked as a duplicate of this ticket.

comment:4 by Don-vip, 13 years ago

Ticket #6884 has been marked as a duplicate of this ticket.

comment:5 by Don-vip, 13 years ago

Ticket #6762 has been marked as a duplicate of this ticket.

comment:6 by Don-vip, 13 years ago

Ticket #6783 has been marked as a duplicate of this ticket.

comment:7 by skyper, 13 years ago

Ticket #6903 has been marked as a duplicate of this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.