IDEA-135706 (ignore NIO exceptions on reading file attributes)
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>
Wed, 28 Jan 2015 11:12:54 +0000 (14:12 +0300)
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>
Wed, 28 Jan 2015 11:12:54 +0000 (14:12 +0300)
platform/util/src/com/intellij/openapi/util/io/FileSystemUtil.java

index e4f54dd5c56d8322a105fe95fe5c9ad15719ef6e..e5482658358273d64e5e7b58507c87645bec3a03 100644 (file)
@@ -299,8 +299,7 @@ public class FileSystemUtil {
       }
       catch (InvocationTargetException e) {
         final Throwable cause = e.getCause();
-        if (cause != null && ("java.nio.file.NoSuchFileException".equals(cause.getClass().getName()) ||
-                              "java.nio.file.InvalidPathException".equals(cause.getClass().getName()))) {
+        if (cause instanceof IOException || cause != null && "java.nio.file.InvalidPathException".equals(cause.getClass().getName())) {
           LOG.debug(cause);
           return null;
         }