mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-highlighting] asConsumer: null-friendly
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only) GitOrigin-RevId: c7a48db536365be666bfcb9264dbb78299bf6f45
This commit is contained in:
committed by
intellij-monorepo-bot
parent
be747e6461
commit
db46304375
+5
-1
@@ -299,7 +299,11 @@ public final class HighlightUtil {
|
||||
if (highlightInfo == null) {
|
||||
return fix -> {};
|
||||
}
|
||||
return fix -> highlightInfo.registerFix(fix.asIntention(), null, null, null, null);
|
||||
return fix -> {
|
||||
if (fix != null) {
|
||||
highlightInfo.registerFix(fix.asIntention(), null, null, null, null);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
static void registerReturnTypeFixes(@NotNull HighlightInfo.Builder info, @NotNull PsiMethod method, @NotNull PsiType expectedReturnType) {
|
||||
|
||||
Reference in New Issue
Block a user