mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-66476 AE at com.intellij.openapi.fileTypes.impl.NativeFileIconProvider$1.fun
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@ public class NativeFileIconProvider implements FileIconProvider {
|
||||
}
|
||||
Icon icon;
|
||||
try { // VM will ensure lock to init -static final field--, note we should have no read access here, to avoid deadlock with EDT needed to init component
|
||||
assert !ApplicationManager.getApplication().isReadAccessAllowed();
|
||||
assert SwingComponentHolder.ourFileChooser != null || !ApplicationManager.getApplication().isReadAccessAllowed();
|
||||
icon = SwingComponentHolder.ourFileChooser.getIcon(f);
|
||||
}
|
||||
catch (Exception e) { // see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4854174
|
||||
|
||||
Reference in New Issue
Block a user