Changeset 14161 in josm


Ignore:
Timestamp:
2018-08-18T02:14:50+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16646 - catch DirectoryIteratorException when loading Fonts on Windows

File:
1 edited

Legend:

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

    r14153 r14161  
    4141import java.lang.reflect.InvocationTargetException;
    4242import java.nio.charset.StandardCharsets;
     43import java.nio.file.DirectoryIteratorException;
    4344import java.nio.file.DirectoryStream;
    4445import java.nio.file.FileSystems;
     
    629630            }
    630631            fontsAvail.add(""); // for devanagari
    631         } catch (IOException ex) {
     632        } catch (IOException | DirectoryIteratorException ex) {
    632633            Logging.log(Logging.LEVEL_ERROR, ex);
    633634            Logging.warn("extended font config - failed to load available Fonts");
Note: See TracChangeset for help on using the changeset viewer.