Modify

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:

Description

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


Plugins:
- 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 [tester=org.openstreetmap.josm.data.validation.tests.CrossingWays$Boundaries@40457344, code=601]
- W: Unable to remove primitives from TestError [tester=org.openstreetmap.josm.data.validation.tests.CrossingWays$Boundaries@40457344, code=601]
- W: Unable to remove primitives from TestError [tester=org.openstreetmap.josm.data.validation.tests.CrossingWays$Boundaries@40457344, code=601]
- E: java.lang.NullPointerException

java.lang.NullPointerException
	at java.util.TreeMap.getEntry(TreeMap.java:342)
	at java.util.TreeMap.get(TreeMap.java:273)
	at org.openstreetmap.josm.gui.dialogs.relation.sort.RelationNodeMap.addPair(RelationNodeMap.java:109)
	at org.openstreetmap.josm.gui.dialogs.relation.sort.RelationNodeMap.<init>(RelationNodeMap.java:100)
	at org.openstreetmap.josm.gui.dialogs.relation.sort.RelationSorter.sortMembersByConnectivity(RelationSorter.java:127)
	at org.openstreetmap.josm.gui.dialogs.relation.sort.RelationSorter.sortMembers(RelationSorter.java:119)
	at org.openstreetmap.josm.gui.dialogs.relation.MemberTableModel.sort(MemberTableModel.java:686)
	at org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor$SortAction.actionPerformed(GenericRelationEditor.java:1027)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.Component.processMouseEvent(Component.java:6516)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3311)
	at java.awt.Component.processEvent(Component.java:6281)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4872)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4698)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
	at java.awt.Container.dispatchEventImpl(Container.java:2273)
	at java.awt.Window.dispatchEventImpl(Window.java:2719)
	at java.awt.Component.dispatchEvent(Component.java:4698)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
	at java.awt.EventQueue.access$200(EventQueue.java:103)
	at java.awt.EventQueue$3.run(EventQueue.java:694)
	at java.awt.EventQueue$3.run(EventQueue.java:692)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:708)
	at java.awt.EventQueue$4.run(EventQueue.java:706)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Attachments (1)

10667.osm.bz2 (643.0 KB ) - added by Don-vip 6 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, 6 years ago

Attachment: 10667.osm.bz2 added

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.