mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE
This commit is contained in:
+1
-2
@@ -85,8 +85,7 @@ public class ReplaceImplementsWithStaticImportAction extends PsiElementBaseInten
|
||||
return false;
|
||||
}
|
||||
final PsiReferenceList extendsList = targetClass.getExtendsList();
|
||||
LOG.assertTrue(extendsList != null);
|
||||
if (extendsList.getReferencedTypes().length > 0) {
|
||||
if (extendsList != null && extendsList.getReferencedTypes().length > 0) {
|
||||
final List<PsiMethod> methods = new ArrayList<PsiMethod>(Arrays.asList(targetClass.getAllMethods()));
|
||||
final PsiClass objectClass =
|
||||
JavaPsiFacade.getInstance(project).findClass(CommonClassNames.JAVA_LANG_OBJECT, GlobalSearchScope.allScope(project));
|
||||
|
||||
Reference in New Issue
Block a user