Modify

Opened 17 years ago

Closed 17 years ago

#1778 closed defect (duplicate)

Exception when loading an empty area twice.

Reported by: jjKlaus Owned by: framm
Priority: minor Milestone:
Component: Core Version:
Keywords: 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 (1)

comment:1 by Hasienda, 17 years ago

Resolution: duplicate
Status: newclosed

Well, after recognizing the lack of a proper "reported by" information in ticket #1777 the poster seemed to have opened another one just to fix this.

Sorry, wrong way. Please don't pile up tickets like this. Keeping an eye on tickets should be as easy as possible for the developers. I have to close this one as an exact duplicate of #1777. I still may leave a note about the original reporter I read at the top of this ticket. That's how it should have been arranged from the start. :-)

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.