mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-20679 - NPE: PyUnresolvedReferencesInspection$Visitor.overridesGetAttr
This commit is contained in:
@@ -381,7 +381,7 @@ public class PyUnresolvedReferencesInspection extends LocalInspectionTool {
|
||||
}
|
||||
if (qtype instanceof PyClassType) {
|
||||
PyClass cls = ((PyClassType)qtype).getPyClass();
|
||||
if (overridesGetAttr(cls)) {
|
||||
if (cls != null && overridesGetAttr(cls)) {
|
||||
return;
|
||||
}
|
||||
if (cls != null && ! PyBuiltinCache.getInstance(node).hasInBuiltins(cls)) {
|
||||
|
||||
Reference in New Issue
Block a user