Changeset 338 in josm for branch


Ignore:
Timestamp:
2007-10-04T00:03:14+02:00 (11 years ago)
Author:
framm
Message:
  • fixed NPE on certain cases of saving files, reported by Andy Robinson
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branch/0.5/src/org/openstreetmap/josm/actions/SaveActionBase.java

    r319 r338  
    126126                                }
    127127                                OsmWriter.output(new FileOutputStream(file), new OsmWriter.All(layer.data, false));
    128                                 if (!Main.pref.getBoolean("save.keepbackup"))
     128                                if (!Main.pref.getBoolean("save.keepbackup") && (tmpFile != null))
    129129                                        tmpFile.delete();
    130130                        } else if (ExtensionFileFilter.filters[ExtensionFileFilter.CSV].acceptName(file.getPath())) {
Note: See TracChangeset for help on using the changeset viewer.