diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/DefaultInspectionToolPresentation.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/DefaultInspectionToolPresentation.java index e33d42acf9c0..1c6893490690 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/DefaultInspectionToolPresentation.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/DefaultInspectionToolPresentation.java @@ -363,7 +363,9 @@ public class DefaultInspectionToolPresentation implements ProblemDescriptionsPro @Override public void amnesty(RefEntity refEntity, CommonProblemDescriptor descriptor) { final CommonProblemDescriptor[] ignoredDescriptors = getIgnoredElements().get(refEntity); - getIgnoredElements().put(refEntity, ArrayUtil.remove(ignoredDescriptors, descriptor)); + if (ignoredDescriptors != null) { + getIgnoredElements().put(refEntity, ArrayUtil.remove(ignoredDescriptors, descriptor)); + } } @Override