mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-3660 PhpStorm 2021.2 crashes on selecting iCloud Drive directory in Open dialog
(cherry picked from commit f5434bcaaf)
This commit is contained in:
@@ -57,9 +57,12 @@ import java.util.List;
|
||||
import sun.awt.AWTAccessor;
|
||||
import sun.java2d.pipe.Region;
|
||||
import sun.security.action.GetBooleanAction;
|
||||
import sun.util.logging.PlatformLogger;
|
||||
|
||||
class CFileDialog implements FileDialogPeer {
|
||||
|
||||
private static final PlatformLogger log = PlatformLogger.getLogger("sun.lwawt.macosx.CFileDialog");
|
||||
|
||||
private class Task implements Runnable {
|
||||
|
||||
@Override
|
||||
@@ -167,7 +170,8 @@ 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