Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#22455 closed defect (fixed)

Nullptr Exception when opening GeoPackage

Reported by: anonymous Owned by: Don-vip
Priority: normal Milestone:
Component: Plugin opendata Version: tested
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Attempt to open a GeoPackage with a single point layer in EPSG:3424
  2. Nullptr exception is thrown

What is the expected result?

File opens

What happens instead?

Nullptr exception

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: 2022-10-06 21:10:57 +0200 (Thu, 06 Oct 2022)
Build-Date:2022-10-07 01:30:59
Revision:18570
Relative:URL: ^/trunk

Identification: JOSM/1.5 (18570 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2009 (19044)
Memory Usage: 1641 MB / 3604 MB (601 MB allocated, but free)
Java version: 1.8.0_341-b10, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.formdev.flatlaf.FlatDarkLaf
Screen: \Display0 1920×1080 (scaling 1.00×1.00) \Display1 1920×1080 (scaling 1.00×1.00) \Display2 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_US
Numbers with default locale: 1234567890 -> 1234567890
Dataset consistency test: No problems found

Plugins:
+ CADTools (1008)
+ FastDraw (35978)
+ ImproveWay (32)
+ OpeningHoursEditor (35924)
+ ShapeTools (1250)
+ apache-commons (36003)
+ buildings_tools (36011)
+ ejml (35924)
+ flatlaf (35862)
+ geotools (36024)
+ imagery_offset_db (35978)
+ indoorhelper (1.2.1)
+ jackson (36006)
+ jaxb (35952)
+ jts (36004)
+ opendata (36025)
+ terracer (35978)
+ utilsplugin2 (36011)

Map paint styles:
+ <josm.pref>\plugins\indoorhelper\resources\sit.mapcss

Last errors/warnings:
- 00005.516 W: Unable to request certificate of https://roottest-g3.pkioverheid.nl
- 00006.120 W: Unable to request certificate of https://roottest-g3.pkioverheid.nl
- 00011.139 W: Update plugins - You updated your JOSM software. To prevent problems the plugins should be updated as well.  Update plugins now?
- 01728.236 E: Handled by bug report queue: java.lang.NullPointerException
- 01920.751 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: main-worker-0 (19) of main
java.lang.NullPointerException
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.GeotoolsConverter.convert(GeotoolsConverter.java:76)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.geopackage.GeoPackageReader.parse(GeoPackageReader.java:59)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.geopackage.GeoPackageReader.parseDataSet(GeoPackageReader.java:44)
	at org.openstreetmap.josm.plugins.opendata.core.io.geographic.geopackage.GeoPackageImporter.parseDataSet(GeoPackageImporter.java:26)
	at org.openstreetmap.josm.gui.io.importexport.OsmImporter.loadLayer(OsmImporter.java:121)
	at org.openstreetmap.josm.gui.io.importexport.OsmImporter.importData(OsmImporter.java:97)
	at org.openstreetmap.josm.plugins.opendata.core.io.AbstractImporter.importData(AbstractImporter.java:59)
	at org.openstreetmap.josm.gui.io.importexport.FileImporter.importDataHandleExceptions(FileImporter.java:103)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:401)
	at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:322)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Change History (2)

comment:1 by taylor.smock, 3 years ago

Resolution: fixed
Status: newclosed

In 36028/osm:

Fix #22455: NPE when opening GeoPackage

This updates the merge-services.jar file using a fork
( https://github.com/JOSM/merge-jar-services ), which
allows us to merge the service files every time we do
a build. The fork also fixes the annoying issue where
service files not ending in a newline will have a
newline appended.

comment:2 by taylor.smock, 3 years ago

In 36029/osm:

See #22455 (dist): NPE when opening GeoPackage

This updates the merge-services.jar file using a fork
( https://github.com/JOSM/merge-jar-services ), which
allows us to merge the service files every time we do
a build. The fork also fixes the annoying issue where
service files not ending in a newline will have a
newline appended.

Add Comment


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