Opened 10 years ago

Closed 10 years ago

#10667 closed defect (fixed)

NPE while sorting relation

Reported by: naoliv Owned by: team
Priority: normal Milestone: 14.11
Component: Core Version:
Keywords: template_report Cc:


Clicked to sort the members of a relation and got this.
(7639 is the version with the optimized upload, so I am not using the latest one)

Build-Date: 2014-10-20 23:35:18
Revision: 7639
Is-Local-Build: true

Identification: JOSM/1.5 (7639 SVN pt_BR) Linux Debian GNU/Linux testing (jessie)
Memory Usage: 5171 MB / 8158 MB (1118 MB allocated, but free)
Java version: 1.7.0_65, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u65-2.5.2-4
VM arguments: [-Dawt.useSystemAAFontSettings=on]

Dataset consistency test:
[WARN - ZERO NODES] Way {Way id=243989221 version=3 VT> nodes=[]} has zero nodes

- Create_grid_of_ways (30762)
- OpeningHoursEditor (30737)
- PicLayer (30762)
- SimplifyArea (30762)
- buildings_tools (30762)
- contourmerge (1012)
- download_along (30762)
- editgpx (30737)
- geotools (30762)
- importvec (30762)
- jts (30762)
- log4j (30762)
- measurement (30737)
- merge-overlap (30762)
- notes (v0.9.4)
- opendata (30762)
- pbf (30762)
- pdfimport (30737)
- poly (30738)
- reverter (30737)
- scripting (30700)
- todo (29154)
- turnrestrictions (30762)
- undelete (30762)
- utilsplugin2 (30762)

Last errors/warnings:
- E: java.lang.IllegalArgumentException: Não foram encontrados coordenadas válidas
- W: Unable to remove primitives from TestError [$Boundaries@40457344, code=601]
- W: Unable to remove primitives from TestError [$Boundaries@40457344, code=601]
- W: Unable to remove primitives from TestError [$Boundaries@40457344, code=601]
- E: java.lang.NullPointerException

	at java.util.TreeMap.getEntry(
	at java.util.TreeMap.get(
	at org.openstreetmap.josm.gui.dialogs.relation.sort.RelationNodeMap.addPair(
	at org.openstreetmap.josm.gui.dialogs.relation.sort.RelationNodeMap.<init>(
	at org.openstreetmap.josm.gui.dialogs.relation.sort.RelationSorter.sortMembersByConnectivity(
	at org.openstreetmap.josm.gui.dialogs.relation.sort.RelationSorter.sortMembers(
	at org.openstreetmap.josm.gui.dialogs.relation.MemberTableModel.sort(
	at org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor$SortAction.actionPerformed(
	at javax.swing.AbstractButton.fireActionPerformed(
	at javax.swing.AbstractButton$Handler.actionPerformed(
	at javax.swing.DefaultButtonModel.fireActionPerformed(
	at javax.swing.DefaultButtonModel.setPressed(
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
	at java.awt.AWTEventMulticaster.mouseReleased(
	at java.awt.Component.processMouseEvent(
	at javax.swing.JComponent.processMouseEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.awt.LightweightDispatcher.processMouseEvent(
	at java.awt.LightweightDispatcher.dispatchEvent(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$200(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	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 (1)

10667.osm.bz2 (643.0 KB ) - added by Don-vip 5 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by stoecker, 10 years ago

Owner: changed from team to naoliv
Status: newneedinfo

Please provide relation ID or better a data file, which causes this error.

comment:2 by naoliv, 10 years ago

Search for FIXME=10667, edit this relation and sort it.
(sorry for the big file)

comment:3 by naoliv, 10 years ago

Owner: changed from naoliv to team
Status: needinfonew

comment:4 by Don-vip, 10 years ago

Milestone: 14.11

comment:5 by Don-vip, 10 years ago

Resolution: fixed
Status: newclosed

In 7662/josm:

fix #10667 - NPE while sorting relation

by Don-vip, 5 years ago

Attachment: 10667.osm.bz2 added

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. 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.