This commit is contained in:
anna
2009-10-05 21:02:14 +04:00
parent 51078431fa
commit daace000cf
@@ -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;