mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fixed NPE (PY-22739)
This commit is contained in:
@@ -538,8 +538,9 @@ public class PyTypeChecker {
|
||||
}
|
||||
for (Map.Entry<PyType, PyType> entry : provider.getGenericSubstitutions(type.getPyClass(), context).entrySet()) {
|
||||
final PyGenericType genericKey = as(entry.getKey(), PyGenericType.class);
|
||||
if (genericKey != null && !substitutions.containsKey(genericKey)) {
|
||||
substitutions.put(genericKey, entry.getValue());
|
||||
final PyType value = entry.getValue();
|
||||
if (genericKey != null && value != null && !substitutions.containsKey(genericKey)) {
|
||||
substitutions.put(genericKey, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user