Opened 2 years ago

Last modified 3 months ago

#19750 needinfo defect

IllegalArgumentException: null primitive in selection

Reported by: gaben Owned by: gaben
Priority: normal Milestone:
Component: Plugin pt_assistant Version:
Keywords: template_report Cc: michael2402, floscher, Polyglot

Description (last modified by gaben)

What steps will reproduce the problem?

  1. Download this relation
  2. Run validator
  3. Apply PT assistant auto fix

What is the expected result?

No crash

What happens instead?

A nice exception

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

Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-08-31 22:55:53 +0200 (Mon, 31 Aug 2020)
Build-Date:2020-09-01 01:30:50
Relative:URL: ^/trunk

Identification: JOSM/1.5 (16996 hu) Windows 10 64-Bit
OS Build number: Windows 10 Pro for Workstations 2004 (19041)
Memory Usage: 1531 MB / 1820 MB (504 MB allocated, but free)
Java version: 1.8.0_261-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel:
Screen: \Display0 1920x1200 (scaling 1.0x1.0)
Maximum Screen Size: 1920x1200
Best cursor sizes: 16x16 -> 32x32, 32x32 -> 32x32
VM arguments: [,<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=%UserProfile%\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\31\583aa85f-29eff323, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=NULL,2048m, -Djnlpx.splashport=49292, -Djnlp.application.href=, -Djnlpx.jvm=<java.home>\bin\javaw.exe]
Dataset consistency test: No problems found

+ ImportImagePlugin (35248)
+ OpeningHoursEditor (35414)
+ apache-commons (35524)
+ buildings_tools (35500)
+ continuosDownload (91)
+ ejml (35313)
+ geotools (35169)
+ gridify (1588746833)
+ jaxb (35092)
+ jts (35122)
+ log4j (35092)
+ opendata (35513)
+ pt_assistant (2.1.10-80-g7d9bba3)
+ reverter (35499)
+ tageditor (35258)
+ turnlanes-tagging (283)
+ utilsplugin2 (35487)
+ wikipedia (1.1.4)

Tagging presets:

Map paint styles:

Last errors/warnings:
- 00034,137 W: Unsupported match type class$Any: opening_hours
- 00942,707 E: Handled by bug report queue: java.lang.IllegalArgumentException: null primitive in selection

No data collected.

Warning issued by: BugReportExceptionHandler#handleException

Thread: AWT-EventQueue-2 (57) of javawsApplicationThreadGroup
java.lang.IllegalArgumentException: null primitive in selection
	at org.openstreetmap.josm.command.SelectCommand.<init>(
	at org.openstreetmap.josm.plugins.pt_assistant.validation.Checker.fixErrorByZooming(
	at org.openstreetmap.josm.plugins.pt_assistant.validation.SegmentChecker.fixError(
	at org.openstreetmap.josm.plugins.pt_assistant.validation.PTAssistantValidatorTest.fixError(
	at org.openstreetmap.josm.gui.dialogs.ValidatorDialog$FixTask.fixError(
	at org.openstreetmap.josm.gui.dialogs.ValidatorDialog$FixTask.realRun(
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(
	at java.util.concurrent.Executors$ Source)
	at Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$ Source)
	at Source)

Attachments (0)

Change History (3)

comment:1 Changed 2 years ago by simon04

Cc: michael2402 floscher Polyglot added

comment:2 Changed 19 months ago by gaben

Description: modified (diff)

specified relation version

Last edited 19 months ago by gaben (previous) (diff)

comment:3 Changed 3 months ago by taylor.smock

Owner: changed from Biswesh to gaben
Status: newneedinfo

I haven't been able to reproduce. I also haven't been able to figure out why it would happen -- in v2.1.14, the only test error with highlights uses RelationMember#getMember, which cannot be null (the RelationMember constructor checks for that).

Modify Ticket

Change Properties
Set your email in Preferences
as needinfo The owner will remain gaben.
as The resolution will be set.
to The owner will be changed from gaben to the specified user.
to The owner will be changed from gaben to the specified user.
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from gaben to anonymous.

Add Comment

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

Note: See TracTickets for help on using tickets.