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

fix #16316 - catch InvalidPathException

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/advanced/AdvancedPreference.java

    r13761 r13838  
    1010import java.io.File;
    1111import java.io.IOException;
     12import java.nio.file.InvalidPathException;
    1213import java.util.ArrayList;
    1314import java.util.Collections;
     
    341342                    try {
    342343                        Main.pref.save();
    343                     } catch (IOException e) {
    344                         Logging.log(Logging.LEVEL_WARN, "IOException while saving preferences:", e);
     344                    } catch (IOException | InvalidPathException e) {
     345                        Logging.log(Logging.LEVEL_WARN, "Exception while saving preferences:", e);
    345346                    }
    346347                    readPreferences(Main.pref);
Note: See TracChangeset for help on using the changeset viewer.