mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix NPE when one of class ancestors is unresolved in PyPep8NamingInspection
This commit is contained in:
@@ -136,7 +136,7 @@ public class PyPep8NamingInspection extends PyInspection {
|
||||
return true;
|
||||
}
|
||||
for (PyClassLikeType ancestor : pyClass.getAncestorTypes(myTypeEvalContext)) {
|
||||
if (blackList.contains(ancestor.getClassQName())) {
|
||||
if (ancestor != null && blackList.contains(ancestor.getClassQName())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user