mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-39129 - NPE: AbstractSuppressByNoInspectionCommentFix.getLineCommentPrefix
This commit is contained in:
+2
-4
@@ -77,11 +77,9 @@ public abstract class AbstractSuppressByNoInspectionCommentFix extends SuppressI
|
||||
}
|
||||
|
||||
@Nullable
|
||||
protected static String getLineCommentPrefix(final PsiElement comment) {
|
||||
protected static String getLineCommentPrefix(@NotNull final PsiElement comment) {
|
||||
final Commenter commenter = LanguageCommenters.INSTANCE.forLanguage(comment.getLanguage());
|
||||
assert commenter != null;
|
||||
|
||||
return commenter.getLineCommentPrefix();
|
||||
return commenter == null ? null : commenter.getLineCommentPrefix();
|
||||
}
|
||||
|
||||
protected void createSuppression(final Project project,
|
||||
|
||||
Reference in New Issue
Block a user