Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#12382 closed defect (fixed)

NPE when querying for history of deleted node

Reported by: malenki Owned by: team
Priority: major Milestone: 16.02
Component: Core Version:
Keywords: template_report undelete Cc:

Description (last modified by malenki)

What steps will reproduce the problem?

  1. undelete an object – it doesn't matter if with undelete or reverter plugin (example: node 2173268750)
  2. select it
  3. press ctrl-h

What is the expected result?

history window with versions pops up

What happens instead?

The NPE you see below. Additionally, JOSM then seems to be in a very unstable condition. Alt-F4 then closes layer after layer. Creating new layers and dragging around a deleted object results in additional NPEs

Please provide any additional information below. Attach a screenshot if possible.

Tested with JOSM latest on a blank ~/.josm with plugins reverter and undelete.
r9436 is fine, r9460 shows the error

Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-01-16 03:00:56 +0100 (Sat, 16 Jan 2016)
Build-Date:2016-01-16 02:34:12
Relative:URL: ^/trunk

Identification: JOSM/1.5 (9480 de) Linux Debian GNU/Linux unstable (sid)
Memory Usage: 552 MB / 2222 MB (256 MB allocated, but free)
Java version: 1.8.0_72-internal-b05, Oracle Corporation, OpenJDK 64-Bit Server VM
VM arguments: [-Dsun.java2d.opengl=false]
Dataset consistency test: No problems found

- undelete (31895)

Last errors/warnings:
- E: java.lang.NullPointerException
- E: java.lang.reflect.InvocationTargetException. Ursache: java.lang.NullPointerException
- E: java.lang.NullPointerException

	at org.openstreetmap.josm.gui.history.CoordinateInfoViewer$MapViewer.update(
	at java.util.Observable.notifyObservers(
	at java.util.Observable.notifyObservers(
	at org.openstreetmap.josm.gui.history.HistoryBrowserModel.fireModelChange(
	at org.openstreetmap.josm.gui.history.HistoryBrowserModel.setLatest(
	at org.openstreetmap.josm.gui.history.HistoryBrowserModel.setHistory(
	at org.openstreetmap.josm.gui.history.HistoryBrowser.populate(
	at org.openstreetmap.josm.gui.history.HistoryBrowserDialog.setHistory(
	at org.openstreetmap.josm.gui.history.HistoryBrowserDialog.<init>(
	at org.openstreetmap.josm.gui.history.HistoryBrowserDialogManager$1$
	at java.awt.event.InvocationEvent.dispatch(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$500(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	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 (6)

comment:1 Changed 8 years ago by malenki

Description: modified (diff)

comment:2 Changed 8 years ago by malenki

Description: modified (diff)

comment:3 Changed 8 years ago by simon04

Resolution: fixed
Status: newclosed

In 9483/josm:

fix #12382 see #12364 - NPE when querying for history of deleted node

comment:4 Changed 8 years ago by simon04

Milestone: 16.02

comment:5 Changed 8 years ago by malenki

Thanks for the fix – this was quite speedy! :)

comment:6 Changed 8 years ago by Don-vip

Ticket #12414 has been marked as a duplicate of this ticket.

Modify Ticket

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