fix exception, KT-891

This commit is contained in:
Stepan Koltsov
2011-12-30 15:14:14 +04:00
parent 87748bb0c7
commit e39648774d
@@ -83,10 +83,10 @@ public class JavaPackageScope extends JetScopeImpl {
PsiField field = psiClassForPackage.findFieldByName(name, true);
if (field == null) {
return null;
return Collections.emptySet();
}
if (!field.hasModifierProperty(PsiModifier.STATIC)) {
return null;
return Collections.emptySet();
}
// TODO: cache