mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed NPE (getQualifiedName() for classes is nullable)
This commit is contained in:
@@ -57,7 +57,7 @@ public class PyClassNameIndex extends StringStubIndexExtension<PyClass> {
|
||||
int pos = qName.lastIndexOf(".");
|
||||
String shortName = pos > 0 ? qName.substring(pos+1) : qName;
|
||||
for (PyClass pyClass : find(shortName, project, scope)) {
|
||||
if (pyClass.getQualifiedName().equals(qName)) {
|
||||
if (qName.equals(pyClass.getQualifiedName())) {
|
||||
return pyClass;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user