Modify

Opened 3 years ago

Closed 2 years ago

#21495 closed defect (needinfo)

error with indoorhelper plugin

Reported by: zorglubu Owned by: zorglubu
Priority: normal Milestone:
Component: Plugin ​indoorhelper Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

What is the expected result?

What happens instead?

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

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-09-03 03:12:33 +0200 (Fri, 03 Sep 2021)
Revision:18193
Build-Date:2021-09-03 01:31:19
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18193 fr) Linux Debian GNU/Linux 11 (bullseye)
Memory Usage: 1204 MB / 8192 MB (773 MB allocated, but free)
Java version: 11.0.12+7-post-Debian-2, Debian, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1600×1200 (scaling 1.00×1.00) :0.1 1600×1200 (scaling 1.00×1.00)
Maximum Screen Size: 1600×1200
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: fr_FR.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: fr_FR
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: X-Cinnamon
Java package: openjdk-11-jre:amd64-11.0.12+7-2
Java ATK Wrapper package: libatk-wrapper-java:all-0.38.0-2+deb11u1
libcommons-logging-java: libcommons-logging-java:-
fonts-noto: fonts-noto:all-20201225-1
Dataset consistency test: No problems found

Plugins:
+ KartaView (374)
+ OpeningHoursEditor (35640)
+ apache-commons (35524)
+ apache-http (35589)
+ buildings_tools (35823)
+ cadastre-fr (35797)
+ easypresets (1623509627)
+ ejml (35458)
+ geotools (35458)
+ indoorhelper (1.2.0)
+ jna (35662)
+ jts (35458)
+ openqa (0.2.2)
+ reverter (35732)
+ todo (30306)
+ turnrestrictions (35640)
+ utilsplugin2 (35792)

Tagging presets:
+ <josm.userdata>/EasyPresets.xml

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1
+ <josm.userdata>/styles/sit.mapcss

Validator rules:
+ https://josm.openstreetmap.de/josmfile?page=Rules/FranceSpecificRules&zip=1

Last errors/warnings:
- 00013.571 E: Impossible de trouver l'image "preference.png"
- 00584.780 E: Impossible de trouver l'image "entrance_door_icon.png"
- 00819.968 E: Impossible de trouver l'image "entrance_door_icon.png"
- 00940.310 E: Impossible de trouver l'image "entrance_door_icon.png"
- 00944.524 E: Impossible de trouver l'image "entrance_door_icon.png"
- 02804.413 E: Handled by bug report queue: java.lang.NullPointerException
- 02817.433 E: Handled by bug report queue: java.lang.NullPointerException
- 02827.912 E: Handled by bug report queue: java.lang.NullPointerException



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (20) of main
java.lang.NullPointerException
	at controller.IndoorHelperController.lambda$new$12(IndoorHelperController.java:201)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6635)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
	at java.desktop/java.awt.Component.processEvent(Component.java:6400)
	at java.desktop/java.awt.Container.processEvent(Container.java:2263)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5011)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Attachments (0)

Change History (6)

comment:1 by skyper, 3 years ago

Component: CorePlugin ​indoorhelper
Owner: changed from team to rebsc

comment:2 by anonymous, 3 years ago

Owner: changed from rebsc to anonymous
Status: newassigned

comment:3 by skyper, 3 years ago

Owner: changed from anonymous to rebsc
Status: assignednew

comment:4 by rebsc, 3 years ago

Thanks for reporting the bug.
Could you please add a description of how to reproduce the bug? Otherwise I cannot fix it.

comment:5 by skyper, 3 years ago

Owner: changed from rebsc to zorglubu
Status: newneedinfo

comment:6 by taylor.smock, 2 years ago

Resolution: needinfo
Status: needinfoclosed

I'm not seeing any code path that would not have an NPE thrown prior to the NPE location in the ticket.

model cannot be null (it is a private final field, and should be the first thing initialized).
toolboxView cannot be null (it is effectively final, and is one of the first things initialized -- the init for it should probably be moved to the field declaration though).

The only window where an NPE could be thrown is during initialization, when the listeners have been initialized but the toolboxView has not. And I didn't see a way for the listeners to get called prior to the initialization of toolboxView.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain zorglubu.
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.