Modify

Opened 15 years ago

Closed 15 years ago

#3992 closed defect (fixed)

Null pointer exception when downloading member

Reported by: Nakor Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

Open JOSm and get relation http://localhost:8111/import?url=http://api.openstreetmap.org/api/0.6/relation/112104 thru the remote control plugin.

In the relation list, right click on the relation and choose download member. An exception occurs.

If you try to download members once more, you get a different message: "Index:1, Size:1"

If then you edit the relation and use the download members button there, the download works fine.

GET http://api.openstreetmap.org/api/0.6/relation/112104/full
java.lang.NullPointerException

at javax.swing.JLabel.setIcon(Unknown Source)
at org.openstreetmap.josm.gui.OsmPrimitivRenderer.renderer(OsmPrimitivRenderer.java:65)
at org.openstreetmap.josm.gui.OsmPrimitivRenderer.getListCellRendererComponent(OsmPrimitivRenderer.java:44)
at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source)
at javax.swing.plaf.basic.BasicListUI$Handler.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.insertIndexInterval(Unknown Source)
at javax.swing.plaf.basic.BasicListUI$Handler.intervalAdded(Unknown Source)
at javax.swing.AbstractListModel.fireIntervalAdded(Unknown Source)
at org.openstreetmap.josm.gui.dialogs.RelationListDialog$RelationListModel.setRelations(RelationListDialog.java:601)
at org.openstreetmap.josm.gui.dialogs.RelationListDialog.updateList(RelationListDialog.java:190)
at org.openstreetmap.josm.gui.dialogs.RelationListDialog.primtivesAdded(RelationListDialog.java:683)
at org.openstreetmap.josm.data.osm.DataSet.firePrimitivesAdded(DataSet.java:800)
at org.openstreetmap.josm.data.osm.DataSet.addPrimitive(DataSet.java:193)
at org.openstreetmap.josm.data.osm.DataSetMerger.mergePrimitive(DataSetMerger.java:132)
at org.openstreetmap.josm.data.osm.DataSetMerger.merge(DataSetMerger.java:337)
at org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor$DownloadTask.realRun(GenericRelationEditor.java:1450)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:63)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:105)
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)java.lang.NullPointerException
at javax.swing.JLabel.setIcon(Unknown Source)
at org.openstreetmap.josm.gui.OsmPrimitivRenderer.renderer(OsmPrimitivRenderer.java:65)
at org.openstreetmap.josm.gui.OsmPrimitivRenderer.getListCellRendererComponent(OsmPrimitivRenderer.java:44)
at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source)
at javax.swing.plaf.basic.BasicListUI$Handler.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.insertIndexInterval(Unknown Source)
at javax.swing.plaf.basic.BasicListUI$Handler.intervalAdded(Unknown Source)
at javax.swing.AbstractListModel.fireIntervalAdded(Unknown Source)
at org.openstreetmap.josm.gui.dialogs.RelationListDialog$RelationListModel.setRelations(RelationListDialog.java:601)
at org.openstreetmap.josm.gui.dialogs.RelationListDialog.updateList(RelationListDialog.java:190)
at org.openstreetmap.josm.gui.dialogs.RelationListDialog.primtivesAdded(RelationListDialog.java:683)
at org.openstreetmap.josm.data.osm.DataSet.firePrimitivesAdded(DataSet.java:800)
at org.openstreetmap.josm.data.osm.DataSet.addPrimitive(DataSet.java:193)
at org.openstreetmap.josm.data.osm.DataSetMerger.mergePrimitive(DataSetMerger.java:132)
at org.openstreetmap.josm.data.osm.DataSetMerger.merge(DataSetMerger.java:337)
at org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor$DownloadTask.realRun(GenericRelationEditor.java:1450)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:63)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:105)
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)

Attachments (0)

Change History (1)

comment:1 by Gubaer, 15 years ago

Resolution: fixed
Status: newclosed

Should be fixed in r2487

Modify Ticket

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