mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-20542 - NPE: PyClassType.getClassQName
This commit is contained in:
@@ -26,8 +26,8 @@ import java.util.*;
|
||||
*/
|
||||
public class PyClassType implements PyType {
|
||||
|
||||
protected PyClass myClass;
|
||||
protected boolean myIsDefinition;
|
||||
protected final PyClass myClass;
|
||||
protected final boolean myIsDefinition;
|
||||
|
||||
/**
|
||||
* Describes a class-based type. Since everything in Python is an instance of some class, this type pretty much completes
|
||||
@@ -58,8 +58,9 @@ public class PyClassType implements PyType {
|
||||
return myIsDefinition;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public String getClassQName() {
|
||||
return myClass.getQualifiedName();
|
||||
return myClass == null ? null : myClass.getQualifiedName();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user