Modify

Opened 3 days ago

Last modified 3 days ago

#24786 new defect

Enexpected Exception with Turn Lanes

Reported by: mapper.nivrd@… Owned by: team
Priority: normal Milestone:
Component: Plugin turnlanes Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Use hotkeys to open Turn Lanes Editor under some conditions (unknown what triggered this as it has been working fine up until the exception was encountered).

What is the expected result?

Use hotkeys to open window to edit turn lanes.

What happens instead?

Unexpected Exception

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

Revision:19555
Is-Local-Build:true
Build-Date:2026-06-29 19:38:35

Identification: JOSM/1.5 (19555 SVN en) Linux CachyOS
Memory Usage: 3056 MB / 24000 MB (399 MB allocated, but free)
Java version: 21.0.11+10, Arch Linux, OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Screen: :0.0 5120x1440x[Multi depth]@144Hz (scaling 1.00×1.00)
Maximum Screen Size: 5120×1440
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_US.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: KDE
VM arguments: [--add-modules=java.scripting,java.sql, -Djosm.restart=true, -Djava.net.useSystemProxies=true, -XX:MaxRAMPercentage=75.0, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED]
Dataset consistency test: No problems found

Plugins:
+ CustomizePublicTransportStop (36474)
+ Mapillary (1819)
+ OpeningHoursEditor (36474)
+ ShapeTools (75)
+ apache-commons (36474)
+ buildings_tools (36474)
+ contourmerge (v0.2.2)
+ easypresets (1623509627)
+ gpsblam (36474)
+ imagery_offset_db (36474)
+ mapwithai (839)
+ openqa (116)
+ pmtiles (36474)
+ tageditor (36474)
+ turnlanes (36474)
+ turnlanes-tagging (1769860692)
+ turnrestrictions (36474)
+ urbaneye3d (2.3.2)
+ utilsplugin2 (36497)
+ wikipedia (448)

Tagging presets:
+ https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM/master/US.zip
+ https://josm.openstreetmap.de/josmfile?page=Presets/ParkingLanes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Healthcare&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Crafts&zip=1
+ <josm.userdata>/EasyPresets.xml

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/ParkingLanes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Schools&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1

Validator rules:
+ https://josm.openstreetmap.de/josmfile?page=Rules/CountryCodeCheck&zip=1
+ ${HOME}/Downloads/PhoneNumberValidationRules.validator.mapcss

Last errors/warnings:
- 00368.878 E: 	at java.desktop/javax.swing.AbstractAction.firePropertyChange(Unknown Source)
- 00368.878 E: 	at java.desktop/javax.swing.AbstractAction.putValue(Unknown Source)
- 00368.878 E: 	at org.openstreetmap.josm.plugins.imagery_offset_db.GetImageryOffsetAction.offsetStateChanged(GetImageryOffsetAction.java:107)
- 00368.878 E: 	at org.openstreetmap.josm.plugins.imagery_offset_db.ImageryOffsetWatcher.setOffsetGood(ImageryOffsetWatcher.java:109)
- 00368.878 E: 	at org.openstreetmap.josm.plugins.imagery_offset_db.ImageryOffsetWatcher.checkOffset(ImageryOffsetWatcher.java:154)
- 00368.878 E: 	at org.openstreetmap.josm.plugins.imagery_offset_db.ImageryOffsetWatcher$IntervalOffsetChecker.run(ImageryOffsetWatcher.java:289)
- 00368.878 E: 	at java.base/java.util.TimerThread.mainLoop(Unknown Source)
- 00368.878 E: 	at java.base/java.util.TimerThread.run(Unknown Source)
- 04766.003 E: Failed to locate image 'https://prd-wret.s3.us-west-2.amazonaws.com/assets/palladium/production/s3fs-public/styles/content_list_thumbnail/public/thumbnails/image/USGS_logo_green_SQUARE.png'
- 06151.884 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "org.openstreetmap.josm.plugins.turnlanestagging.bean.BRoad.getName()" is null



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (36) of main
java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "org.openstreetmap.josm.plugins.turnlanestagging.bean.BRoad.getName()" is null
	at org.openstreetmap.josm.plugins.turnlanestagging.TurnLanesEditorDialog.setRoadProperties(TurnLanesEditorDialog.java:339)
	at org.openstreetmap.josm.plugins.turnlanestagging.TurnLanesEditorDialog.startEditSession(TurnLanesEditorDialog.java:156)
	at org.openstreetmap.josm.plugins.turnlanestagging.LaunchAction.launchEditor(LaunchAction.java:85)
	at org.openstreetmap.josm.plugins.turnlanestagging.LaunchAction.actionPerformed(LaunchAction.java:61)
	at java.desktop/javax.swing.SwingUtilities.notifyAction(Unknown Source)
	at java.desktop/javax.swing.JComponent.processKeyBinding(Unknown Source)
	at java.desktop/javax.swing.KeyboardManager.fireBinding(Unknown Source)
	at java.desktop/javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
	at java.desktop/javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
	at java.desktop/javax.swing.JComponent.processKeyBindings(Unknown Source)
	at java.desktop/javax.swing.JComponent.processKeyEvent(Unknown Source)
	at java.desktop/java.awt.Component.processEvent(Unknown Source)
	at java.desktop/java.awt.Container.processEvent(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
	at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
	at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
	at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
	at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

Attachments (1)

JOSM_TurnLane_Exception.png (1.5 MB ) - added by mapper.nivrd@… 3 days ago.
Screenshot of selected way at time of exception

Download all attachments as: .zip

Change History (2)

by mapper.nivrd@…, 3 days ago

Attachment: JOSM_TurnLane_Exception.png added

Screenshot of selected way at time of exception

comment:1 by mapper.nivrd@…, 3 days ago

Found out how to consistently reproduce this.
Just attempt to open the Turn Lanes Editor with a way selected that has a tag "oneway=-1".

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to mapper.nivrd@….
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.