Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#21105 closed defect (fixed)

NPE at GpxLayer.getAssociatedFile: Cannot read field "storageFile" because "this.data" is null exiting josm

Reported by: wilcken@… Owned by: Don-vip
Priority: major Milestone: 21.07
Component: Core Version: tested
Keywords: template_report gpx save exit regression Cc: GerdP

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.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-07-12 02:41:41 +0200 (Mon, 12 Jul 2021)
Revision:18004
Build-Date:2021-07-12 00:42:49
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18004 de) Windows 10 64-Bit
OS Build number: Windows 10 Home 2004 (19041)
Memory Usage: 1274 MB / 4082 MB (587 MB allocated, but free)
Java version: 16.0.1+9-24, Oracle Corporation, Java HotSpot(TM) 64-Bit Server 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: de_DE
Numbers with default locale: 1234567890 -> 1234567890

Last errors/warnings:
- 00000.423 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF'
- 00000.426 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
- 00248.926 E: Region [WMS_BLOCK_v2] : Problem loading keys for file WMS_BLOCK_v2
- 00323.555 E: Handled by bug report queue: java.lang.NullPointerException: Cannot read field "storageFile" because "this.data" is null



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (32) of main
java.lang.NullPointerException: Cannot read field "storageFile" because "this.data" is null
	at org.openstreetmap.josm.gui.layer.GpxLayer.getAssociatedFile(GpxLayer.java:365)
	at org.openstreetmap.josm.actions.SaveAction.updateEnabledState(SaveAction.java:103)
	at org.openstreetmap.josm.actions.JosmAction$LayerChangeAdapter.layerRemoving(JosmAction.java:451)
	at org.openstreetmap.josm.actions.SaveAction$1.layerRemoving(SaveAction.java:89)
	at org.openstreetmap.josm.gui.layer.LayerManager.fireLayerRemoving(LayerManager.java:476)
	at org.openstreetmap.josm.gui.layer.LayerManager.realRemoveSingleLayer(LayerManager.java:278)
	at org.openstreetmap.josm.gui.layer.MainLayerManager.realRemoveSingleLayer(MainLayerManager.java:307)
	at org.openstreetmap.josm.gui.layer.LayerManager.realRemoveLayer(LayerManager.java:266)
	at org.openstreetmap.josm.gui.layer.LayerManager.lambda$removeLayer$1(LayerManager.java:248)
	at org.openstreetmap.josm.gui.util.GuiHelper.runInEDTAndWaitWithException(GuiHelper.java:246)
	at org.openstreetmap.josm.gui.layer.LayerManager.removeLayer(LayerManager.java:248)
	at org.openstreetmap.josm.gui.layer.LayerManager.realResetState(LayerManager.java:515)
	at org.openstreetmap.josm.gui.layer.MainLayerManager.realResetState(MainLayerManager.java:493)
	at org.openstreetmap.josm.gui.util.GuiHelper.runInEDTAndWaitWithException(GuiHelper.java:246)
	at org.openstreetmap.josm.gui.layer.LayerManager.resetState(LayerManager.java:506)
	at org.openstreetmap.josm.gui.MainTermination.run(MainTermination.java:43)
	at org.openstreetmap.josm.spi.lifecycle.Lifecycle.exitJosm(Lifecycle.java:121)
	at org.openstreetmap.josm.gui.MainApplication.exitJosm(MainApplication.java:520)
	at org.openstreetmap.josm.gui.MainFrame$ExitWindowAdapter.windowClosing(MainFrame.java:198)
	at java.desktop/java.awt.AWTEventMulticaster.windowClosing(AWTEventMulticaster.java:357)
	at java.desktop/java.awt.Window.processWindowEvent(Window.java:2079)
	at java.desktop/javax.swing.JFrame.processWindowEvent(JFrame.java:298)
	at java.desktop/java.awt.Window.processEvent(Window.java:2038)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4993)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2322)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2773)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4825)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Attachments (0)

Change History (21)

comment:1 by skyper, 3 years ago

Keywords: gpx save exit regression added
Summary: ending josmNPE at gui.layer.GpxLayer.getAssociatedFile: Cannot read field "storageFile" because "this.data" is null exiting josm
Version: latest

comment:2 by skyper, 3 years ago

Version: latesttested

comment:3 by Don-vip, 3 years ago

Cc: GerdP added
Milestone: 21.07
Owner: changed from team to Don-vip
Status: newassigned

Regression of r17439

comment:4 by Don-vip, 3 years ago

Resolution: fixed
Status: assignedclosed

In 18008/josm:

fix #21105 - see #17184 - make sure that most operations of GpxLayer are harmless after call to destroy()

comment:5 by skyper, 3 years ago

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

comment:6 by Don-vip, 3 years ago

Summary: NPE at gui.layer.GpxLayer.getAssociatedFile: Cannot read field "storageFile" because "this.data" is null exiting josmNPE at GpxLayer.getAssociatedFile: Cannot read field "storageFile" because "this.data" is null exiting josm

comment:7 by Don-vip, 3 years ago

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

comment:8 by Don-vip, 3 years ago

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

comment:9 by Don-vip, 3 years ago

Priority: normalmajor

comment:10 by skyper, 3 years ago

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

comment:11 by skyper, 3 years ago

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

comment:12 by GerdP, 3 years ago

I really wonder why this pops up so frequently now. There was probably another change after r17439.

comment:13 by skyper, 3 years ago

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

comment:14 by skyper, 3 years ago

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

comment:15 by skyper, 3 years ago

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

comment:16 by skyper, 3 years ago

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

comment:17 by skyper, 3 years ago

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

comment:18 by Don-vip, 3 years ago

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

comment:19 by Don-vip, 3 years ago

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

comment:20 by skyper, 3 years ago

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

comment:21 by Don-vip, 3 years ago

Ticket #21405 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 Don-vip.
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.