Modify

Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#6659 closed defect (fixed)

[patch] NPE in way length computation

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

Description

What steps will reproduce the problem?

  1. Open location: http://api.openstreetmap.org/api/0.6/changeset/3149484/download
  2. Ctrl-A

What is the expected result?

  • All changeset data is selected

What happens instead?

  • An NPE in way length computation (see attached patch)

Please provide any additional information below. Attach a screenshot if possible.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2011-07-29 01:31:23
Last Changed Author: stoecker
Revision: 4274
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2011-07-28 18:34:03 +0200 (Thu, 28 Jul 2011)
Last Changed Rev: 4274

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

Dataset consistency test:
[SEARCH WAYS] {Way id=24661858 version=2 VT nodes=[{Node id=268058573 version=0 IV }, {Node id=268058574 version=0 IV }, {Node id=268058576 version=0 IV }, {Node id=268058577 version=0 IV }, {Node id=268058578 version=0 IV }, {Node id=268058580 version=0 IV }, {Node id=268058582 version=0 IV }, {Node id=268058584 version=0 IV }, {Node id=268058585 version=0 IV }, {Node id=268058587 version=0 IV }, {Node id=268058588 version=0 IV }, {Node id=268058591 version=0 IV }, {Node id=268058592 version=0 IV }, {Node id=469938678 version=0 IV }]} not found using Dataset.searchWays()


Plugin: cadastre-fr (26382)
Plugin: epci-fr (26282)
Plugin: licensechange (26377)
Plugin: photo_geotagging (26174)
Plugin: restart (26254)

java.lang.NullPointerException
	at org.openstreetmap.josm.data.osm.Way.getLength(Way.java:542)
	at org.openstreetmap.josm.gui.dialogs.SelectionListDialog$SelectionListModel.setJOSMSelection(SelectionListDialog.java:626)
	at org.openstreetmap.josm.gui.dialogs.SelectionListDialog$SelectionListModel.selectionChanged(SelectionListDialog.java:705)
	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(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.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 (1.0 KB ) - added by Don-vip 14 years ago.

Download all attachments as: .zip

Change History (4)

by Don-vip, 14 years ago

Attachment: patch.diff added

comment:1 by bastiK, 13 years ago

Resolution: fixed
Status: newclosed

In [4321/josm]:

applied #6659 - NPE in way length computation (patch by Don-vip)

comment:2 by bastiK, 13 years ago

@Don-vip: You can bump the ticket if there is no reaction after 2 weeks or so. If you add "[patch]" in the header, it should be noticed eventually, but a little reminder might speed things up. :)

comment:3 by Don-vip, 13 years ago

Ticket #6697 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.