Modify

Ticket #3341 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH] NPE on loading data via remotecontrol

Reported by: anonymous Owned by: team
Priority: normal Component: Core
Version: Keywords:
Cc:

Description

  1. Have remotecontrol installed and start JOSM.
  2. Go to  http://osmdoc.com/de/tag/highway/
  3. Click a JOSM link
  4. Click another JOSM link

Now I get the unexpected error alert.

Here are the informations:

Path: trunk URL: http://josm.openstreetmap.de/svn/trunk Repository Root: http://josm.openstreetmap.de/svn Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Revision: 1997 Node Kind: directory Last Changed Author: Gubaer Last Changed Rev: 1997 Last Changed Date: 2009-08-25 22:45:57 +0200 (Tue, 25 Aug 2009)

Memory Usage: 29 MB / 508 MB (5 MB allocated, but free) Java version: 1.6.0_15

Plugins: openstreetbugs remotecontrol validator wmsplugin Plugin openstreetbugs Version: 17035 Plugin remotecontrol Version: 16965 Plugin validator Version: 16970 Plugin wmsplugin Version: 16872

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

at org.openstreetmap.josm.gui.PleaseWaitRunnable$2.run(PleaseWaitRunnable.java:98) 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)

Caused by: java.lang.reflect.InvocationTargetException

at java.awt.EventQueue.invokeAndWait(Unknown Source) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:67) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:116) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) 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.NullPointerException

at org.openstreetmap.josm.data.osm.DataSet.getDataSourceArea(DataSet.java:276) at org.openstreetmap.josm.gui.layer.OsmDataLayer.mergeFrom(OsmDataLayer.java:266) at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$Task.finish(DownloadOsmTask.java:135) at org.openstreetmap.josm.gui.PleaseWaitRunnable$1.run(PleaseWaitRunnable.java:69) 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

null-bounds.patch Download (1.3 KB) - added by plaicy 2 years ago.

Change History

Changed 2 years ago by plaicy

comment:1 Changed 2 years ago by plaicy

  • Summary changed from NPE on loading data via remotecontrol to [PATCH] NPE on loading data via remotecontrol

I can confirm this. A possible solution is attached. Naturally the modification of DataSource is not necessary but it helps tracking down other bugs of this type (this is how I debugged the code).

comment:2 Changed 2 years ago by stoecker

  • Status changed from new to closed
  • Resolution set to fixed

(In [2013]) fix #3341 - NPE

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.