Opened 4 months ago

Closed 4 months ago

#18412 closed defect (fixed)

[PATCH] surveyor crashes since 14290

Reported by: taylor.smock Owned by: team
Priority: normal Milestone:
Component: Plugin surveyor Version:
Keywords: template_report Cc:

Description (last modified by Don-vip)

surveyor was calling ImageProvider with ImageProvider.getIfAvailable(null, iconName); -- since r14290, there is a check for null in the directory.

It actually looks like there are several issues with the plugin, when it is attempted to be used.

Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-12-11 01:40:30 +0100 (Wed, 11 Dec 2019)
Build-Date:2019-12-11 02:30:55
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15582 en) Mac OS X 10.15.1
OS Build number: Mac OS X 10.15.1 (19B88)
Memory Usage: 852 MB / 1820 MB (626 MB allocated, but free)
Java version: 1.8.0_211-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: Display 69734272 1440x900, Display 188945226 1920x1080, Display 188945225 1920x1080
Maximum Screen Size: 1920x1080
VM arguments: [<java.home>/lib/security/javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>/bin,, -Djnlpx.origFilenameArg=${HOME}/Downloads/josm-latest.jnlp, -Djnlpx.remove=false, -Dsun.awt.warmup=true, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=NULL,2048m, (development version), -Dmacosx.jnlpx.dock.icon=${HOME}/Library/Application Support/Oracle/Java/Deployment/cache/6.0/25/4c122699-2acbeb7e.icns, -Djnlpx.jvm="<java.home>/bin/java"]
Dataset consistency test: No problems found

+ Mapillary (1.5.20)
+ apache-commons (35092)
+ apache-http (35092)
+ auto_tools (73)
+ buildings_tools (35248)
+ graphview (35248)
+ imagery_offset_db (35248)
+ intersection (0.0.7)
+ jna (35092)
+ livegps (35248)
+ mapwithai (0.2.4)
+ markseen (14)
+ osm-obj-info (56)
+ rex (53)
+ surveyor (35248)
+ utilsplugin2 (35248)

Map paint styles:
+ ${HOME}/workspace/osm/kaart-styles/Kaart-Styles.mapcss

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- E: Failed to locate image 'styles/standard/vehicle/tunnel.png'
- E: Failed to locate image 'styles/standard/vehicle/tunnel.png'
- E: Failed to locate image 'styles/standard/vehicle/tunnel.png'
- E: Failed to locate image 'styles/standard/vehicle/tunnel.png'
- E: Handled by bug report queue: java.lang.NullPointerException: name

No data collected.

Warning issued by: BugReportExceptionHandler#handleException

Thread: AWT-EventQueue-2 (48) of javawsApplicationThreadGroup
java.lang.NullPointerException: name
	at java.util.Objects.requireNonNull(
	at org.openstreetmap.josm.plugins.surveyor.ButtonDescription.createComponent(
	at org.openstreetmap.josm.plugins.surveyor.SurveyorComponent.addButton(
	at org.openstreetmap.josm.plugins.surveyor.SurveyorShowAction.createComponent(
	at org.openstreetmap.josm.plugins.surveyor.SurveyorShowAction.createComponent(
	at org.openstreetmap.josm.plugins.surveyor.SurveyorShowAction.actionPerformed(
	at javax.swing.AbstractButton.fireActionPerformed(
	at javax.swing.AbstractButton$Handler.actionPerformed(
	at javax.swing.DefaultButtonModel.fireActionPerformed(
	at javax.swing.DefaultButtonModel.setPressed(
	at javax.swing.AbstractButton.doClick(
	at java.awt.MenuItem.processActionEvent(
	at java.awt.MenuItem.processEvent(
	at java.awt.MenuComponent.dispatchEventImpl(
	at java.awt.MenuComponent.dispatchEvent(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$500(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

Attachments (1)

18412.patch (660 bytes) - added by taylor.smock 4 months ago.
Don't call ImageProvider with null

Download all attachments as: .zip

Change History (4)

Changed 4 months ago by taylor.smock

Attachment: 18412.patch added

Don't call ImageProvider with null

comment:1 Changed 4 months ago by taylor.smock

Description: modified (diff)

comment:2 Changed 4 months ago by Don-vip

Description: modified (diff)

comment:3 Changed 4 months ago by Don-vip

Resolution: fixed
Status: newclosed

Fixed in [o35252:35254].

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.