Modify

Opened 17 years ago

Closed 16 years ago

#1393 closed defect (worksforme)

NPE in Measurement-Plugin caused by Validator action

Reported by: juebuchner@… Owned by: framm
Priority: minor Milestone:
Component: Plugin Version: latest
Keywords: validator; NPE; NullPointerException Cc:

Description

  1. Download Bounding Box http://www.openstreetmap.org/index.html?mlat=50.10832264531207&mlon=8.829398301024995&zoom=14
  2. Click on validate
  3. Select the duplicate nodes error
  4. Click on Select / Auswahl
  5. NPE:
Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 746
Node Kind: directory
Last Changed Author: framm
Last Changed Rev: 746
Last Changed Date: 2008-08-05 02:14:58 +0200 (Tue, 05 Aug 2008)


java.lang.NullPointerException
	at org.openstreetmap.josm.plugins.measurement.MeasurementLayer.calcDistance(MeasurementLayer.java:158)
	at org.openstreetmap.josm.plugins.measurement.MeasurementDialog$1.selectionChanged(MeasurementDialog.java:109)
	at org.openstreetmap.josm.data.osm.DataSet.fireSelectionChanged(DataSet.java:194)
	at org.openstreetmap.josm.data.osm.DataSet.setSelected(DataSet.java:146)
	at org.openstreetmap.josm.plugins.validator.ValidatorDialog.setSelectedItems(ValidatorDialog.java:173)
	at org.openstreetmap.josm.plugins.validator.ValidatorDialog.actionPerformed(ValidatorDialog.java:180)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(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 (2)

comment:1 by anonymous, 17 years ago

Summary: NPE in Validator-PluginNPE in Measurement-Plugin caused by Validator action

comment:2 by Hasienda, 16 years ago

Keywords: NullPointerException added
Resolution: worksforme
Status: newclosed
Version: latest

reasons:

  • no more duplicate nodes error in that area (even fixed 2 of the 3 minor warnings left there)
  • used both measurement plugin and validator on serveral other objects with JOSM revision 1089 (latest to date)

@reporter: please check with latest revision since 746 should really be obsolete now

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.