Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#7987 closed defect (fixed)

NPE when selecting a zero-node way

Reported by: Cobra Owned by: team
Priority: normal Milestone:
Component: Plugin measurement Version:
Keywords: template_report Cc:


What steps will reproduce the problem?

  1. find a way without nodes (e.g. download an earlier version of a deleted way)
  2. select it (via search)
  3. watch the measurement plugin crash

What is the expected result?
nothing. maybe some NaN instead of numbers.

What happens instead?
said NPE.

Build-Date: 2012-08-21 10:50:43
Revision: 5467
Is-Local-Build: true

Identification: JOSM/1.5 (5467 SVN en)
Memory Usage: 355 MB / 3640 MB (220 MB allocated, but free)
Java version: 1.6.0_33, Sun Microsystems Inc., Java HotSpot(TM) 64-Bit Server VM
Operating system: Linux

Dataset consistency test:
[SEARCH WAYS] {Way id=167442827 version=2 VT nodes=[{Node id=1852604401 version=0 IV }, {Node id=1852604399 version=0 IV }, {Node id=1852604396 version=0 IV }, {Node id=1788382770 version=0 IV }, {Node id=1779606994 version=0 IV }, {Node id=1788382772 version=0 IV }, {Node id=1852604401 version=0 IV }]} not found using Dataset.searchWays()

Plugin: FastDraw (28412)
Plugin: FixAddresses (28412)
Plugin: HouseNumberTaggingTool (28412)
Plugin: ImportImagePlugin (28412)
Plugin: InfoMode (27981)
Plugin: PicLayer (28559)
Plugin: alignways (28412)
Plugin: buildings_tools (28529)
Plugin: conflation (0.1.6)
Plugin: contourmerge (1003)
Plugin: jts (28415)
Plugin: measurement (28412)
Plugin: mirrored_download (28418)
Plugin: openstreetbugs (28412)
Plugin: openvisible (28412)
Plugin: pbf (28412)
Plugin: pdfimport (28448)
Plugin: proj4j (28412)
Plugin: restart (28438)
Plugin: reverter (28535)
Plugin: routing (28568)
Plugin: terracer (28412)
Plugin: undelete (28501)
Plugin: utilsplugin2 (28556)

	at org.openstreetmap.josm.plugins.measurement.MeasurementDialog$2.selectionChanged(
	at javax.swing.SwingUtilities.notifyAction(
	at javax.swing.JComponent.processKeyBinding(
	at javax.swing.KeyboardManager.fireBinding(
	at javax.swing.KeyboardManager.fireKeyboardAction(
	at javax.swing.JComponent.processKeyBindingsForAllComponents(
	at javax.swing.JComponent.processKeyBindings(
	at javax.swing.JComponent.processKeyEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.KeyboardFocusManager.redispatchEvent(
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$000(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by Don-vip

Resolution: fixed
Status: newclosed

should be fixed in [o28589].

comment:2 Changed 8 years ago by AlfonZ

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.