mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-18029 Fix NPE on handling returnFullValue() request after closing Python Console
This commit is contained in:
@@ -746,16 +746,18 @@ public class PydevConsoleCommunication extends AbstractConsoleCommunication impl
|
||||
final List<PyAsyncValue<String>> values = myCallbackHashMap.remove(requestSeq);
|
||||
try {
|
||||
List<PyDebugValue> debugValues = response.stream()
|
||||
.map(value -> createPyDebugValue(value, PydevConsoleCommunication.this))
|
||||
.collect(Collectors.toList());
|
||||
.map(value -> createPyDebugValue(value, PydevConsoleCommunication.this))
|
||||
.collect(Collectors.toList());
|
||||
for (int i = 0; i < debugValues.size(); ++i) {
|
||||
PyDebugValue resultValue = debugValues.get(i);
|
||||
values.get(i).getCallback().ok(resultValue.getValue());
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
for (PyFrameAccessor.PyAsyncValue vars : values) {
|
||||
vars.getCallback().error(new PyDebuggerException(response.toString()));
|
||||
if (values != null) {
|
||||
for (PyFrameAccessor.PyAsyncValue vars : values) {
|
||||
vars.getCallback().error(new PyDebuggerException(response.toString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user