mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-02 13:55:39 +02:00
Terminals: Fix NPE in TabFolderManager.createTabItem if flags==null
This commit is contained in:
parent
929e68521f
commit
0d3c144299
1 changed files with 2 additions and 2 deletions
|
@ -272,8 +272,8 @@ public class TabFolderManager extends PlatformObject implements ISelectionProvid
|
|||
|
||||
// Create the terminal control
|
||||
ITerminalViewControl terminal = TerminalViewControlFactory.makeControl(doCreateTerminalTabTerminalListener(this, item), composite, new ITerminalConnector[] { connector }, true);
|
||||
if (terminal instanceof ITerminalControl && flags.containsKey(ITerminalsConnectorConstants.PROP_DATA_NO_RECONNECT)) {
|
||||
Object value = flags.get(ITerminalsConnectorConstants.PROP_DATA_NO_RECONNECT);
|
||||
if (terminal instanceof ITerminalControl) {
|
||||
Object value = flags != null ? flags.get(ITerminalsConnectorConstants.PROP_DATA_NO_RECONNECT) : null;
|
||||
boolean noReconnect = value instanceof Boolean ? ((Boolean)value).booleanValue() : false;
|
||||
((ITerminalControl)terminal).setConnectOnEnterIfClosed(!noReconnect);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue