diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/actions/AbstractSuppressByNoInspectionCommentFix.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/actions/AbstractSuppressByNoInspectionCommentFix.java index e2370f68192f..72155c297c77 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/actions/AbstractSuppressByNoInspectionCommentFix.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/actions/AbstractSuppressByNoInspectionCommentFix.java @@ -127,8 +127,7 @@ public abstract class AbstractSuppressByNoInspectionCommentFix extends SuppressI public static boolean isSuppressionComment(PsiElement comment) { final String lineCommentPrefix = getLineCommentPrefix(comment); - assert lineCommentPrefix != null; - return comment.getText().startsWith(lineCommentPrefix + SuppressionUtil.SUPPRESS_INSPECTIONS_TAG_NAME); + return lineCommentPrefix != null && comment.getText().startsWith(lineCommentPrefix + SuppressionUtil.SUPPRESS_INSPECTIONS_TAG_NAME); } @Nullable