Ignore:
Timestamp:
2018-05-26T02:47:41+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #16316 - catch InvalidPathException

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/Main.java

    r13647 r13838  
    99import java.lang.ref.WeakReference;
    1010import java.net.URL;
     11import java.nio.file.InvalidPathException;
    1112import java.util.Collection;
    1213import java.util.Collections;
     
    347348        try {
    348349            pref.saveDefaults();
    349         } catch (IOException ex) {
     350        } catch (IOException | InvalidPathException ex) {
    350351            Logging.log(Logging.LEVEL_WARN, tr("Failed to save default preferences."), ex);
    351352        }
Note: See TracChangeset for help on using the changeset viewer.