Modify

Opened 12 years ago

Closed 12 years ago

#7039 closed defect (fixed)

Opening GPX file results in error

Reported by: anonymous Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Open JOSM
  2. Load GPX file (either via menu or via drag&drop

What is the expected result?
The GPX file should be displayed on black background as in older versions.

What happens instead?
Error message is shown, track is listed in "Layers", but not shown. After confirming the error the GPX layer is displayed when draging the map or changing the zoom level. On closing JOSM there is another error message.

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

Tested version works as expected.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2011-11-03 02:32:16
Last Changed Author: stoecker
Revision: 4567
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2011-11-02 15:44:20 +0100 (Wed, 02 Nov 2011)
Last Changed Rev: 4567

Identification: JOSM/1.5 (4567 de)
Memory Usage: 109 MB / 711 MB (27 MB allocated, but free)
Java version: 1.7.0_01, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Operating system: Windows 7


java.lang.NullPointerException
	at org.openstreetmap.josm.gui.MapFrame.activeLayerChange(MapFrame.java:493)
	at org.openstreetmap.josm.gui.MapView.fireActiveLayerChanged(MapView.java:140)
	at org.openstreetmap.josm.gui.MapView.setActiveLayer(MapView.java:719)
	at org.openstreetmap.josm.gui.MapView.setActiveLayer(MapView.java:704)
	at org.openstreetmap.josm.gui.MapView.addLayer(MapView.java:283)
	at org.openstreetmap.josm.Main.addLayer(Main.java:288)
	at org.openstreetmap.josm.io.GpxImporter$1.run(GpxImporter.java:49)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$000(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pu

Error message on closing:

java.lang.NullPointerException
	at org.openstreetmap.josm.gui.MapFrame.activeLayerChange(MapFrame.java:493)
	at org.openstreetmap.josm.gui.MapView.fireActiveLayerChanged(MapView.java:140)
	at org.openstreetmap.josm.gui.MapView.setActiveLayer(MapView.java:719)
	at org.openstreetmap.josm.gui.MapView.removeLayer(MapView.java:357)
	at org.openstreetmap.josm.Main.exitJosm(Main.java:571)
	at org.openstreetmap.josm.gui.MainApplication$1.windowClosing(MainApplication.java:76)
	at java.awt.AWTEventMulticaster.windowClosing(Unknown Source)
	at java.awt.AWTEventMulticaster.windowClosing(Unknown Source)
	at java.awt.Window.processWindowEvent(Unknown Source)
	at javax.swing.JFrame.processWindowEvent(Unknown Source)
	at java.awt.Window.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$000(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

Attachments (1)

20111103151119-Unerwarteter Fehler.png (58.7 KB ) - added by anonymous 12 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 by stoecker, 12 years ago

Resolution: fixed
Status: newclosed

Already fixed in r4568.

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.