Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#16176 closed defect (fixed)

NPE at DeleteRelationsAction.updateEnabledState

Reported by: dieterdreist Owned by: team
Priority: normal Milestone: 18.04
Component: Core Version: latest
Keywords: relation Cc:


I downloaded a region (italian admin level4 entity), made some editing, selected all relations with ctrl+f type:relation and tried to purge them. --> unhandled exception occured.

Click on "report bug" --> Opening the bug report failed, please report manually

here I am.
I have also attached the osm file.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-04-09 20:10:16 +0200 (Mon, 09 Apr 2018)
Build-Date:2018-04-10 01:32:20

Identification: JOSM/1.5 (13610 en) Mac OS X 10.13.4
OS Build number: Mac OS X 10.13.4 (17E199)
Memory Usage: 370 MB / 2048 MB (100 MB allocated, but free)
Java version: 10+46, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: Display 188875522 1920x1080, Display 458628992 1920x1080
Maximum Screen Size: 1920x1080
VM arguments: [-Dsun.java2d.opengl=true]
Dataset consistency test: No problems found

+ ColorPlugin (1511895663)
+ Create_grid_of_ways (34109)
+ ImportImagePlugin (34109)
+ PicLayer (34109)
+ ShapeTools (1230)
+ apache-commons (34109)
+ buildings_tools (34109)
+ editgpx (34109)
+ ejml (34126)
+ fieldpapers (v0.4.3)
+ geochat (34109)
+ geojson (80)
+ geotools (34125)
+ imagery_offset_db (34109)
+ jts (34038)
+ log4j (34038)
+ mbtiles (a3e491d)
+ measurement (34109)
+ o5m (34109)
+ osmarender (34096)
+ pbf (34109)
+ photo_geotagging (34109)
+ reltoolbox (34130)
+ reverter (34109)
+ undelete (34109)
+ utilsplugin2 (34109)

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- W: Cannot start IPv4 remotecontrol https server on port 8112: Keystore was tampered with, or password was incorrect
- W: Cannot start IPv6 remotecontrol https server on port 8112: Keystore was tampered with, or password was incorrect
- E: Handled by bug report queue: java.lang.NullPointerException
- E: Handled by bug report queue: java.lang.NullPointerException
- E: Handled by bug report queue: java.lang.NullPointerException

No data collected.

Warning issued by: BugReportExceptionHandler#handleException

Thread: AWT-EventQueue-0 (21) of main
	at java.base/$1MatchSink.accept(
	at java.base/$3$1.accept(
	at java.base/java.util.Spliterators$IteratorSpliterator.tryAdvance(
	at java.base/
	at java.base/
	at java.base/
	at java.base/
	at java.base/$MatchOp.evaluateSequential(
	at java.base/$MatchOp.evaluateSequential(
	at java.base/
	at java.base/
	at org.openstreetmap.josm.actions.relation.DeleteRelationsAction.updateEnabledState(
	at org.openstreetmap.josm.actions.relation.AbstractRelationAction.setPrimitives(
	at org.openstreetmap.josm.gui.PopupMenuHandler.setPrimitives(
	at org.openstreetmap.josm.gui.dialogs.RelationListDialog.updateActionsRelationLists(
	at org.openstreetmap.josm.gui.dialogs.RelationListDialog.lambda$new$0(
	at java.desktop/javax.swing.JList.fireSelectionValueChanged(
	at java.desktop/javax.swing.JList$ListSelectionHandler.valueChanged(
	at java.desktop/javax.swing.DefaultListSelectionModel.fireValueChanged(
	at java.desktop/javax.swing.DefaultListSelectionModel.fireValueChanged(
	at java.desktop/javax.swing.DefaultListSelectionModel.setValueIsAdjusting(
	at org.openstreetmap.josm.gui.dialogs.RelationListDialog$RelationListModel.setSelectedRelations(
	at org.openstreetmap.josm.gui.dialogs.RelationListDialog$RelationListModel.removeRelations(
	at org.openstreetmap.josm.gui.dialogs.RelationListDialog.primitivesRemoved(
	at java.desktop/java.awt.event.InvocationEvent.dispatch(
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(
	at java.desktop/java.awt.EventQueue.access$600(
	at java.desktop/java.awt.EventQueue$
	at java.desktop/java.awt.EventQueue$
	at java.base/ Method)
	at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
	at java.desktop/java.awt.EventQueue.dispatchEvent(
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/

Attachments (1)

20180410_crash_dd.osm (1.6 MB) - added by dieterdreist 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by dieterdreist

Attachment: 20180410_crash_dd.osm added

comment:1 Changed 5 years ago by Don-vip

Keywords: relation added
Milestone: 18.04
Summary: josm crashesNPE at DeleteRelationsAction.updateEnabledState

comment:2 Changed 5 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 13611/josm:

fix #16176 - NPE

comment:3 Changed 5 years ago by stoecker

Can you tell why the automatic report failed?

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.