Opened 8 years ago

Last modified 7 years ago

#16609 closed defect

StringIndexOutOfBoundsException - MendRelationAction — at Version 1

Reported by: Polyglot Owned by: Biswesh
Priority: normal Milestone:
Component: Plugin pt_assistant Version:
Keywords: template_report relation Cc:

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. happened in video Reims 2
  2. Using routing helper

What is the expected result?

What happens instead?

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

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-08-12 02:52:44 +0200 (Sun, 12 Aug 2018)
Build-Date:2018-08-12 01:33:39
Revision:14139
Relative:URL: ^/trunk

Identification: JOSM/1.5 (14139 en) Linux Mint 18.3 Sylvia
Memory Usage: 2010 MB / 2711 MB (1014 MB allocated, but free)
Java version: 1.8.0_171-8u171-b11-0ubuntu0.16.04.1-b11, Oracle Corporation, OpenJDK 64-Bit Server VM
Screen: :0.0 1600x900
Maximum Screen Size: 1600x900
Java package: openjdk-8-jre:amd64-8u171-b11-0ubuntu0.16.04.1
Dataset consistency test: No problems found

Plugins:
+ ImportImagePlugin
+ Mapillary (v1.5.15)
+ OpeningHoursEditor (34389)
+ apache-commons (34389)
+ apache-http (34389)
+ buildings_tools (34212)
+ ejml (34389)
+ geotools (34125)
+ jts (34206)
+ log4j
+ measurement (34206)
+ opendata (34389)
+ pt_assistant (306)
+ reverter (34271)
+ scripting (30785)
+ tag2link (34109)
+ terracer (34109)
+ todo (30305)
+ utilsplugin2 (34389)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/BENELUX&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Trees&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/OneClick&zip=1

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/NumberedCycleNodeNetworks&zip=1

Last errors/warnings:
- W: Unsaved changes - <html>You have unsaved changes in this editor window.<br><br>Do you want to discard these changes and reload data from layer?</html>
- W: Unsaved changes - <html>You have unsaved changes in this editor window.<br><br>Do you want to discard these changes and reload data from layer?</html>
- W: Unsaved changes - <html>You have unsaved changes in this editor window.<br><br>Do you want to discard these changes and reload data from layer?</html>
- W: Unsaved changes - <html>You have unsaved changes in this editor window.<br><br>Do you want to discard these changes and reload data from layer?</html>
- W: Conflict in data - <html>This relation has been changed outside of the editor.<br>You cannot apply your changes and continue editing.<br><br>Do you want to create a conflict and close the editor?</html>
- W: Conflict in data - <html>This relation has been changed outside of the editor.<br>You cannot apply your changes and continue editing.<br><br>Do you want to create a conflict and close the editor?</html>
- W: Terracer: wrong or missing outline
- E: Handled by bug report queue: org.openstreetmap.josm.data.osm.DataIntegrityProblemException: Primitive must be part of the dataset: {Way id=-33837451 version=0 VT> nodes=[{Node id=4111295950 version=1 V lat=49.2643571,lon=4.0126426}, {Node id=4111295943 version=1 V lat=49.2643006,lon=4.0128847}, {Node id=4111295943 version=1 V lat=49.2643006,lon=4.0128847}, {Node id=4111295941 version=1 VT lat=49.2642626,lon=4.0130838}, {Node id=4111295941 version=1 VT lat=49.2642626,lon=4.0130838}, {Node id=4111295942 version=1 V lat=49.2642661,lon=4.0131381}, {Node id=4111295942 version=1 V lat=49.2642661,lon=4.0131381}, {Node id=355307559 version=4 V lat=49.2642807,lon=4.0131754}]}
- E: Handled by bug report queue: java.lang.IndexOutOfBoundsException: Index: 56, Size: 0
- E: Handled by bug report queue: java.lang.StringIndexOutOfBoundsException: String index out of range: -1


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (18) of main
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1931)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.lambda$isRestricted$6(MendRelationAction.java:1303)
	at java.util.Collection.removeIf(Collection.java:414)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.isRestricted(MendRelationAction.java:1286)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.removeInvalidWaysFromParentWays(MendRelationAction.java:1066)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.goToNextWays(MendRelationAction.java:818)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.findNextWayAfterDownload(MendRelationAction.java:653)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.downloadAreaAroundWay(MendRelationAction.java:1159)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.findNextWayBeforeDownload(MendRelationAction.java:621)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.callNextWay(MendRelationAction.java:321)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction.getNextWayAfterSelection(MendRelationAction.java:1974)
	at org.openstreetmap.josm.plugins.pt_assistant.actions.MendRelationAction$1.keyPressed(MendRelationAction.java:1540)
	at java.awt.Component.processKeyEvent(Component.java:6491)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2832)
	at java.awt.Component.processEvent(Component.java:6310)
	at java.awt.Container.processEvent(Container.java:2238)
	at java.awt.Component.dispatchEventImpl(Component.java:4889)
	at java.awt.Container.dispatchEventImpl(Container.java:2296)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:835)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1103)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:974)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:800)
	at java.awt.Component.dispatchEventImpl(Component.java:4760)
	at java.awt.Container.dispatchEventImpl(Container.java:2296)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
	at java.awt.EventQueue$4.run(EventQueue.java:733)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Change History (1)

comment:1 by Don-vip, 7 years ago

Description: modified (diff)
Keywords: relation added
Summary: Using routing helperStringIndexOutOfBoundsException - MendRelationAction
Note: See TracTickets for help on using tickets.