diff --git a/cnd.debugger.common2/src/org/netbeans/modules/cnd/debugger/common2/debugger/io/DebuggerExternalTerminal.java b/cnd.debugger.common2/src/org/netbeans/modules/cnd/debugger/common2/debugger/io/DebuggerExternalTerminal.java --- a/cnd.debugger.common2/src/org/netbeans/modules/cnd/debugger/common2/debugger/io/DebuggerExternalTerminal.java +++ b/cnd.debugger.common2/src/org/netbeans/modules/cnd/debugger/common2/debugger/io/DebuggerExternalTerminal.java @@ -91,7 +91,11 @@ if (ExternalTerminalProvider.getSupportedTerminalIDs().contains(termBaseName)) { NativeProcessBuilder npb = NativeProcessBuilder.newLocalProcessBuilder(); ExternalTerminal terminal = ExternalTerminalProvider.getTerminal(exEnv, termBaseName); - terminal = terminal.setTitle(Catalog.get("Title_Debugger_External_Terminal")); // NOI18N + if (terminal != null) { + // In the case then "terminal" is null, + // null will be passed to useExternalTerminal and internal terminal will be called. + terminal = terminal.setTitle(Catalog.get("Title_Debugger_External_Terminal")); // NOI18N + } npb.useExternalTerminal(terminal); npb.setExecutable(gdbHelperScript.getAbsolutePath()); npb.redirectError();