IDEA-66476 AE at com.intellij.openapi.fileTypes.impl.NativeFileIconProvider$1.fun

This commit is contained in:
Maxim.Mossienko
2011-03-17 17:47:53 +03:00
parent 09eb2ae423
commit 77926151f1
@@ -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