Opened 15 years ago

Closed 15 years ago

#1682 closed defect (worksforme)

I wanted to correct some map problems with the validator plugin and it crashed

Reported by: ronny.standtke@… Owned by: framm
Priority: major Milestone:
Component: unspecified Version:
Keywords: Cc:


Path: trunk
Repository Root:
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1057
Node Kind: directory
Last Changed Author: ulfl
Last Changed Rev: 1057
Last Changed Date: 2008-10-26 11:19:51 +0100 (Sun, 26 Oct 2008)


at org.openstreetmap.josm.command.SequenceCommand.executeCommand(
at org.openstreetmap.josm.plugins.validator.ValidatorDialog.fixErrors(
at org.openstreetmap.josm.plugins.validator.ValidatorDialog.actionPerformed(
at javax.swing.AbstractButton.fireActionPerformed(
at javax.swing.AbstractButton$Handler.actionPerformed(
at javax.swing.DefaultButtonModel.fireActionPerformed(
at javax.swing.DefaultButtonModel.setPressed(
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
at java.awt.AWTEventMulticaster.mouseReleased(
at java.awt.Component.processMouseEvent(
at javax.swing.JComponent.processMouseEvent(
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.LightweightDispatcher.retargetMouseEvent(
at java.awt.LightweightDispatcher.processMouseEvent(
at java.awt.LightweightDispatcher.dispatchEvent(
at java.awt.Container.dispatchEventImpl(
at java.awt.Window.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
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 (3)

comment:1 Changed 15 years ago by anonymous

That error is really strange. Assuming it was thrown by the latest validator version this means it was thrown by the last line of the following code block:

Object nodeInfo = childNode.getUserObject();
if (nodeInfo instanceof TestError) {
  TestError error = (TestError) nodeInfo;
  Command fixCommand = error.getFix();

The error is a NullPointerException -> variable "error" is null. This means that nodeInfo has to be null and therefore the "nodeInfo instanceof TestError" resolves to false (by Java specification). If it resolves to false we will never enter the if clause and therefore never reach line where the error was thrown. Really strange.

In conclusion I would assume that this is an error of the executing JVM, not of JOSM or the validator plugin.

@Ronny: Could you please add some information about your Java and OS environment?
Did the error occur more than once?

comment:2 Changed 15 years ago by anonymous

This is Kubuntu-8.04.1.

$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

comment:3 Changed 15 years ago by anonymous

Resolution: worksforme
Status: newclosed

Modify Ticket

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