mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2026-01-08 09:31:42 +01:00
JBR-3660 PhpStorm 2021.2 crashes on selecting iCloud Drive directory in Open dialog
(cherry picked from commitf5434bcaaf) (cherry picked from commit58f6991df8)
This commit is contained in:
@@ -55,9 +55,12 @@ import java.util.List;
|
||||
|
||||
import sun.awt.AWTAccessor;
|
||||
import sun.java2d.pipe.Region;
|
||||
import sun.util.logging.PlatformLogger;
|
||||
|
||||
final class CFileDialog implements FileDialogPeer {
|
||||
|
||||
private static final PlatformLogger log = PlatformLogger.getLogger("sun.lwawt.macosx.CFileDialog");
|
||||
|
||||
private final class Task implements Runnable {
|
||||
|
||||
@Override
|
||||
@@ -161,7 +164,8 @@ final class CFileDialog implements FileDialogPeer {
|
||||
String nameOnly = fileObj.getName();
|
||||
try {
|
||||
ret = ff.accept(directoryObj, nameOnly);
|
||||
} catch (Throwable ignored) {
|
||||
} catch (Throwable e) {
|
||||
log.warning("FilenameFilter call exception occurred", e);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user