Modify

Opened 14 months ago

Closed 14 months ago

Last modified 10 months ago

#22868 closed defect (fixed)

NPE: Cannot invoke "BBox.getMin()" because the return value of "HeaderBlock.bbox()" is null

Reported by: anonymous Owned by: team
Priority: normal Milestone: 23.04
Component: Core Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Trying to open an osm.pbf file

What is the expected result?

What happens instead?

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

Revision:18700
Build-Date:2023-04-04 06:56:19

Identification: JOSM/1.5 (18700 en) Mac OS X 13.3.1
OS Build number: macOS 13.3.1 (22E261)
Memory Usage: 456 MB / 8192 MB (293 MB allocated, but free)
Java version: 17.0.6+10-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 1 1800×1169 (scaling 2.00×2.00) Display 3 2560×1440 (scaling 1.00×1.00)
Maximum Screen Size: 2560×1440
Best cursor sizes: 16×16→16×16, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=18700, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=/Applications/JOSM.app/Contents/MacOS/JOSM]

Plugins:
+ apache-commons (36034)
+ ejml (35924)
+ geotools (36028)
+ jackson (36034)
+ jaxb (35952)
+ jts (36004)
+ opendata (36025)
+ pbf (36034)
+ utilsplugin2 (36011)

Last errors/warnings:
- 00023.528 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "org.openstreetmap.josm.data.osm.BBox.getMin()" because the return value of "org.openstreetmap.josm.data.osm.pbf.HeaderBlock.bbox()" is null



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: openFiles-0 (27) of main
java.lang.NullPointerException: Cannot invoke "org.openstreetmap.josm.data.osm.BBox.getMin()" because the return value of "org.openstreetmap.josm.data.osm.pbf.HeaderBlock.bbox()" is null
	at org.openstreetmap.josm.io.OsmPbfReader.parseDataBlock(OsmPbfReader.java:339)
	at org.openstreetmap.josm.io.OsmPbfReader.parse(OsmPbfReader.java:116)
	at org.openstreetmap.josm.io.AbstractReader.doParseDataSet(AbstractReader.java:329)
	at org.openstreetmap.josm.io.AbstractReader.doParseDataSet(AbstractReader.java:304)
	at org.openstreetmap.josm.io.OsmPbfReader.doParseDataSet(OsmPbfReader.java:85)
	at org.openstreetmap.josm.io.OsmPbfReader.parseDataSet(OsmPbfReader.java:80)
	at org.openstreetmap.josm.gui.io.importexport.OsmPbfImporter.parseDataSet(OsmPbfImporter.java:44)
	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.gui.io.importexport.OsmImporter.importData(OsmImporter.java:82)
	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:350)
	at org.openstreetmap.josm.gui.MainApplication$DefaultNativeOsCallback$1.realRun(MainApplication.java:1502)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Attachments (0)

Change History (7)

comment:1 by taylor.smock, 14 months ago

Resolution: fixed
Status: newclosed

In 18702/josm:

Fix #22868: NPE when a PBF does not include bound information

comment:2 by taylor.smock, 14 months ago

Milestone: 23.04
Summary: Error when trying to open an osm.pbf fileNPE: Cannot invoke "BBox.getMin()" because the return value of "HeaderBlock.bbox()" is null

comment:3 by taylor.smock, 14 months ago

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

comment:4 by skyper, 14 months ago

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

comment:5 by skyper, 14 months ago

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

comment:6 by taylor.smock, 14 months ago

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

comment:7 by GerdP, 10 months ago

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

Modify Ticket

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