提交 06429994 编写于 作者: D Daniel Imms

Add null check

Fixes #18159
上级 0d27e814
......@@ -227,7 +227,7 @@ export class SwitchTerminalInstanceAction extends Action {
}
public run(item?: string): TPromise<any> {
if (!item) {
if (!item || !item.split) {
return TPromise.as(null);
}
const selectedTerminalIndex = parseInt(item.split(':')[0], 10) - 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册