mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE
EA-374986 - NPE: StaticMembersProcessor.registerMember GitOrigin-RevId: 552d50c683da949cb3a35f74f70f2faef561b099
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6f1645a6eb
commit
deb45e5011
+8
-7
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.codeInsight.daemon.impl.quickfix;
|
||||
|
||||
import com.intellij.codeInsight.CodeInsightUtil;
|
||||
@@ -102,16 +102,17 @@ abstract class StaticMembersProcessor<T extends PsiMember & PsiDocCommentOwner>
|
||||
//methods in interfaces must have explicit static modifier or they are not static;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (myAddStaticImport) {
|
||||
if (!PsiUtil.isFromDefaultPackage(member)) {
|
||||
if (myAddStaticImport) {
|
||||
if (!PsiUtil.isFromDefaultPackage(member)) {
|
||||
mySuggestions.putValue(containingClass, member);
|
||||
}
|
||||
}
|
||||
else if (myInDefaultPackage || !PsiUtil.isFromDefaultPackage(member)) {
|
||||
mySuggestions.putValue(containingClass, member);
|
||||
}
|
||||
}
|
||||
else if (myInDefaultPackage || !PsiUtil.isFromDefaultPackage(member)) {
|
||||
mySuggestions.putValue(containingClass, member);
|
||||
}
|
||||
|
||||
return processCondition();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user