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

fix #16316 - catch InvalidPathException

File:
1 edited

Legend:

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

    r13769 r13838  
    1414import java.io.StringWriter;
    1515import java.nio.charset.StandardCharsets;
     16import java.nio.file.InvalidPathException;
    1617import java.util.ArrayList;
    1718import java.util.Collection;
     
    594595                save();
    595596            }
    596         } catch (IOException e) {
     597        } catch (IOException | InvalidPathException e) {
    597598            Logging.error(e);
    598599            if (!GraphicsEnvironment.isHeadless()) {
     
    698699                try {
    699700                    save();
    700                 } catch (IOException e) {
     701                } catch (IOException | InvalidPathException e) {
    701702                    File file = getPreferenceFile();
    702703                    try {
Note: See TracChangeset for help on using the changeset viewer.