fix exception, KT-891
This commit is contained in:
+2
-2
@@ -83,10 +83,10 @@ public class JavaPackageScope extends JetScopeImpl {
|
|||||||
|
|
||||||
PsiField field = psiClassForPackage.findFieldByName(name, true);
|
PsiField field = psiClassForPackage.findFieldByName(name, true);
|
||||||
if (field == null) {
|
if (field == null) {
|
||||||
return null;
|
return Collections.emptySet();
|
||||||
}
|
}
|
||||||
if (!field.hasModifierProperty(PsiModifier.STATIC)) {
|
if (!field.hasModifierProperty(PsiModifier.STATIC)) {
|
||||||
return null;
|
return Collections.emptySet();
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: cache
|
// TODO: cache
|
||||||
|
|||||||
Reference in New Issue
Block a user