mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE fixed
This commit is contained in:
@@ -226,9 +226,13 @@ public class XDebuggerManagerImpl extends XDebuggerManager implements ProjectCom
|
||||
@Override
|
||||
@Nullable
|
||||
public XDebugSession getDebugSession(@NotNull ExecutionConsole executionConsole) {
|
||||
for (final XDebugSession debuggerSession : getDebugSessions()) {
|
||||
if (executionConsole == debuggerSession.getRunContentDescriptor().getExecutionConsole()) {
|
||||
return debuggerSession;
|
||||
for (final XDebugSessionImpl debuggerSession : mySessions.values()) {
|
||||
XDebugSessionTab sessionTab = debuggerSession.getSessionTab();
|
||||
if (sessionTab != null) {
|
||||
RunContentDescriptor contentDescriptor = sessionTab.getRunContentDescriptor();
|
||||
if (contentDescriptor != null && executionConsole == contentDescriptor.getExecutionConsole()) {
|
||||
return debuggerSession;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user