Modify

Opened 17 years ago

Closed 17 years ago

#250 closed defect (fixed)

Error while trying to save to disk file

Reported by: hoylen@… Owned by: imi
Priority: major Milestone:
Component: unspecified Version: latest
Keywords: Cc:

Description

This error occurred when trying to save to a disk file.

Before that, I started JOSM, opened a local GPX file, downloaded OSM data from the server, and did some editing.

Path: josm
URL: http://www.eigenheimstrasse.de/svn/josm
Repository Root: http://www.eigenheimstrasse.de/svn/josm
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 320
Node Kind: directory
Last Changed Author: imi
Last Changed Rev: 320
Last Changed Date: 2007-09-04 15:41:49 +0200 (Tue, 04 Sep 2007)

java.lang.NullPointerException

at org.openstreetmap.josm.actions.SaveActionBase.save(SaveActionBase.java:129)
at org.openstreetmap.josm.actions.SaveActionBase.actionPerformed(SaveActionBase.java:46)
at javax.swing.SwingUtilities.notifyAction(Unknown Source)
at javax.swing.JComponent.processKeyBinding(Unknown Source)
at javax.swing.KeyboardManager.fireBinding(Unknown Source)
at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
at javax.swing.JComponent.processKeyBindings(Unknown Source)
at javax.swing.JComponent.processKeyEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(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.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)

[patch]delete_tmpfile_when_not_null.diff (750 bytes ) - added by nukehead@… 17 years ago.
Only delete tmpFile when it is exists

Download all attachments as: .zip

Change History (3)

by nukehead@…, 17 years ago

Only delete tmpFile when it is exists

comment:1 by nukehead@…, 17 years ago

The temporary file sometimes created for backups will always be deleted even if it doesn't exist, hence the nullpointerexception. I was so bold and created a fix for this (see attached file).
Also applies to the tickets #252, #253, #254, #255.

comment:2 by anonymous, 17 years ago

Resolution: fixed
Status: newclosed

patch applied for #327. thank you.

Modify Ticket

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