From 77926151f14b556fde071c6d77f6da87d48b0519 Mon Sep 17 00:00:00 2001 From: "Maxim.Mossienko" Date: Thu, 17 Mar 2011 17:24:13 +0300 Subject: [PATCH] IDEA-66476 AE at com.intellij.openapi.fileTypes.impl.NativeFileIconProvider$1.fun --- .../intellij/openapi/fileTypes/impl/NativeFileIconProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/openapi/fileTypes/impl/NativeFileIconProvider.java b/platform/lang-impl/src/com/intellij/openapi/fileTypes/impl/NativeFileIconProvider.java index 03f707e51b14..e4cdd992ce52 100644 --- a/platform/lang-impl/src/com/intellij/openapi/fileTypes/impl/NativeFileIconProvider.java +++ b/platform/lang-impl/src/com/intellij/openapi/fileTypes/impl/NativeFileIconProvider.java @@ -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