Modify

Opened 21 months ago

Closed 20 months ago

Last modified 20 months ago

#6807 closed defect (duplicate)

[Patch] NullPointerException at way selection

Reported by: m13022004@… Owned by: team
Priority: normal Component: Core
Version: Keywords: template_report
Cc:

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. Start josm with osm as parameter
  2. Select coastline. see pointer in screenshot.

What is the expected result?
Selecting coastline

What happens instead?
NullPointerException
the object description is shown

Please provide any additional information below. Attach a screenshot if
possible.
Screenshot and osm file attached

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2011-09-05 01:31:49
Last Changed Author: bastiK
Revision: 4399
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2011-09-04 22:13:51 +0200 (Sun, 04 Sep 2011)
Last Changed Rev: 4399

Identification: JOSM/1.5 (4399 de)
Memory Usage: 107 MB / 910 MB (54 MB allocated, but free)
Java version: 1.6.0_26, Sun Microsystems Inc., Java HotSpot(TM) Server VM
Operating system: Linux
Dataset consistency test: No problems found


java.lang.NullPointerException
	at org.openstreetmap.josm.data.coor.LatLon.greatCircleDistance(LatLon.java:165)
	at org.openstreetmap.josm.data.osm.Way.getLength(Way.java:545)
	at org.openstreetmap.josm.gui.dialogs.SelectionListDialog$SelectionListModel.setJOSMSelection(SelectionListDialog.java:580)
	at org.openstreetmap.josm.gui.dialogs.SelectionListDialog$SelectionListModel.selectionChanged(SelectionListDialog.java:659)
	at org.openstreetmap.josm.data.osm.event.SelectionEventManager.fireEvents(SelectionEventManager.java:78)
	at org.openstreetmap.josm.data.osm.event.SelectionEventManager.access$200(SelectionEventManager.java:20)
	at org.openstreetmap.josm.data.osm.event.SelectionEventManager$1.run(SelectionEventManager.java:85)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
	at java.awt.EventQueue.access$000(EventQueue.java:84)
	at java.awt.EventQueue$1.run(EventQueue.java:602)
	at java.awt.EventQueue$1.run(EventQueue.java:600)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122

Attachments (2)

ticket-6807.tar.gz (253.3 KB) - added by m13022004@… 21 months ago.
tar archive screenshot and osm file
patch.diff (611 bytes) - added by Don-vip 20 months ago.

Download all attachments as: .zip

Change History (5)

Changed 21 months ago by m13022004@…

tar archive screenshot and osm file

Changed 20 months ago by Don-vip

comment:1 Changed 20 months ago by Don-vip

  • Description modified (diff)
  • Summary changed from NullPointerExeption at selection to [Patch] NullPointerException at way selection

See attached patch.

comment:2 Changed 20 months ago by Don-vip

  • Resolution set to duplicate
  • Status changed from new to closed

comment:3 Changed 20 months ago by Don-vip

Closed as duplicate of #6761.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.