Modify

Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#20856 closed defect (fixed)

NPE at DrawBuildingAction.lambda$setCursor$1

Reported by: anonymous Owned by: Upliner
Priority: normal Milestone:
Component: Plugin buildings_tools 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.

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-04-27 20:35:33 +0200 (Tue, 27 Apr 2021)
Build-Date:2021-04-27 21:58:39
Revision:17833
Relative:URL: ^/trunk

Identification: JOSM/1.5 (17833 en_GB) Windows 10 64-Bit
OS Build number: Windows 10 Home 2004 (19041)
Memory Usage: 537 MB / 989 MB (189 MB allocated, but free)
Java version: 1.8.0_291-b10, Oracle Corporation, Java HotSpot(TM) Client VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: en_GB
Numbers with default locale: 1234567890 -> 1234567890

Plugins:
+ apache-commons (35524)
+ apache-http (35589)
+ buildings_tools (35740)
+ jna (35662)
+ mapathoner (1.1.7)
+ mapwithai (1.7.1.5)
+ markseen (14)
+ scripting (30798)
+ terracer (35640)
+ todo (30306)
+ utilsplugin2 (35691)

Map paint styles:
+ https://github.com/MissingMaps/josm_styles/archive/master.zip 
- https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1

Last errors/warnings:
- 00020.242 E: Failed to locate image 'MapWithAI'
- 13283.374 E: Handled by bug report queue: java.lang.NullPointerException
- 13559.424 E: Failed loading https://a.tile.openstreetmap.org/16/41295/37397.png: class java.io.FileNotFoundException: https://b.tile.openstreetmap.org/16/41295/37397.png
- 13559.428 E: Failed loading https://a.tile.openstreetmap.org/16/41296/37396.png: class java.io.FileNotFoundException: https://b.tile.openstreetmap.org/16/41296/37396.png
- 13559.480 E: Failed loading https://a.tile.openstreetmap.org/16/41296/37397.png: class java.io.FileNotFoundException: https://a.tile.openstreetmap.org/16/41296/37397.png
- 13904.828 E: Handled by bug report queue: java.lang.NullPointerException
- 18549.807 E: Handled by bug report queue: java.lang.NullPointerException
- 23634.912 E: Handled by bug report queue: java.lang.NullPointerException
- 25066.358 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 (17) of main
java.lang.NullPointerException
	at org.openstreetmap.josm.plugins.buildings_tools.DrawBuildingAction.lambda$setCursor$1(DrawBuildingAction.java:112)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (6)

comment:1 by simon04, 4 years ago

Component: CorePlugin buildings_tools
Owner: changed from team to Upliner

comment:2 by skyper, 4 years ago

Ticket #20984 has been marked as a duplicate of this ticket.

comment:3 by Don-vip, 3 years ago

Summary: An unexpected exception occurred that may have come from the 'buildings_tools' plug-in. According to the information within the plug-in, the author is Upliner.NPE at DrawBuildingAction.lambda$setCursor$1

comment:4 by skyper, 3 years ago

Ticket #21374 has been marked as a duplicate of this ticket.

comment:5 by GerdP, 3 years ago

Resolution: fixed
Status: newclosed

In 35820/osm:

fix #20856: NPE at DrawBuildingAction.lambda$setCursor$1

  • add null check, no idea in what situation the map is null

comment:6 by GerdP, 3 years ago

In 35821/osm:

fix #20856: NPE at DrawBuildingAction.lambda$setCursor$1

  • correct null check

Modify Ticket

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