Modify

Opened 17 years ago

Closed 17 years ago

#1777 closed defect (worksforme)

Exception when loading an empty area twice.

Reported by: anonymous Owned by: framm
Priority: minor Milestone:
Component: Core Version: latest
Keywords: RuntimeException; load empty area Cc:

Description

1) load a very small area without any features
2) place a ploygon whith 2 points inside the area an one outside. A msgbox like "cannot place point outside world" occurs.
3) load a new area without feature. Then one should see the following callstack.

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1067
Node Kind: directory
Last Changed Author: mfloryan
Last Changed Rev: 1067
Last Changed Date: 2008-11-06 12:21:41 +0100 (Thu, 06 Nov 2008)

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

at org.openstreetmap.josm.gui.PleaseWaitRunnable.closeDialog(PleaseWaitRunnable.java:146)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:95)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.reflect.InvocationTargetException

at java.awt.EventQueue.invokeAndWait(Unknown Source)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.closeDialog(PleaseWaitRunnable.java:142)
... 4 more

Caused by: java.lang.NullPointerException

at org.openstreetmap.josm.gui.NavigatableComponent.getEastNorth(NavigatableComponent.java:95)
at org.openstreetmap.josm.actions.mapmode.DrawAction.computeHelperLine(DrawAction.java:392)
at org.openstreetmap.josm.actions.mapmode.DrawAction.selectionChanged(DrawAction.java:140)
at org.openstreetmap.josm.data.osm.DataSet.fireSelectionChanged(DataSet.java:206)
at org.openstreetmap.josm.gui.MapView.setActiveLayer(MapView.java:385)
at org.openstreetmap.josm.gui.dialogs.LayerListDialog$2.valueChanged(LayerListDialog.java:195)
at javax.swing.JList.fireSelectionValueChanged(Unknown Source)
at javax.swing.JList$ListSelectionHandler.valueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
at javax.swing.DefaultListSelectionModel.setSelectionInterval(Unknown Source)
at javax.swing.JList.setSelectedIndex(Unknown Source)
at javax.swing.JList.setSelectedValue(Unknown Source)
at org.openstreetmap.josm.gui.dialogs.LayerListDialog.activeLayerChange(LayerListDialog.java:316)
at org.openstreetmap.josm.gui.MapView.setActiveLayer(MapView.java:393)
at org.openstreetmap.josm.gui.MapView.addLayer(MapView.java:189)
at org.openstreetmap.josm.Main.addLayer(Main.java:317)
at org.openstreetmap.josm.actions.NewAction.actionPerformed(NewAction.java:22)
at org.openstreetmap.josm.Main.editLayer(Main.java:324)
at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$Task.finish(DownloadOsmTask.java:49)
at org.openstreetmap.josm.gui.PleaseWaitRunnable$4.run(PleaseWaitRunnable.java:128)
at java.awt.event.InvocationEvent.dispatch(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.pumpEventsForFilter(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at org.openstreetmap.josm.gui.PleaseWaitRunnable$3.run(PleaseWaitRunnable.java:78)
at java.awt.event.InvocationEvent.dispatch(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 Hasienda, 17 years ago

Keywords: RuntimeException load empty area added

anonymous aka jjKlaus (see #1778, a duplicate of this ticket, that most likely exists just to announce this)

comment:2 by Hasienda, 17 years ago

Resolution: worksforme
Status: newclosed
Version: latest

1) load a very small area without any features
2) place a ploygon whith 2 points inside the area an one outside. A msgbox like "cannot place point outside world" occurs.

No, not with JOSM revision 1101 (latest to date), testet right now.

3) load a new area without feature. Then one should see the following callstack.

No, I've loaded several empty areas, both non-overlapping and overlapping to the before loaded ones. Think this was fixed somewhere on the way from JOSM revision 1067 mentioned in the report.

@reporter: please check and re-open with fresh details, if still not fixed for you

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.