From daace000cf8f5fccdb91de1ba5979aaf6cee5d70 Mon Sep 17 00:00:00 2001 From: anna Date: Mon, 5 Oct 2009 20:56:15 +0400 Subject: [PATCH] CCE --- .../com/intellij/codeInspection/ui/ProblemDescriptionNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/ProblemDescriptionNode.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/ProblemDescriptionNode.java index cfa19448cf32..47e13ea54701 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/ProblemDescriptionNode.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/ProblemDescriptionNode.java @@ -48,7 +48,7 @@ public class ProblemDescriptionNode extends InspectionTreeNode { public CommonProblemDescriptor getDescriptor() { return myDescriptor; } public Icon getIcon(boolean expanded) { - if (myDescriptor != null) { + if (myDescriptor instanceof ProblemDescriptorImpl) { ProblemHighlightType problemHighlightType = ((ProblemDescriptorImpl)myDescriptor).getHighlightType(); if (problemHighlightType == ProblemHighlightType.ERROR) return ERROR; if (problemHighlightType == ProblemHighlightType.GENERIC_ERROR_OR_WARNING) return WARNING;