We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca0f86a commit c313af8Copy full SHA for c313af8
src/backend/mi2/mi2.ts
@@ -679,7 +679,7 @@ export class MI2 extends EventEmitter implements IBackend {
679
this.log("stderr", "varListChildren");
680
//TODO: add `from` and `to` arguments
681
const res = await this.sendCommand(`var-list-children --all-values ${name}`);
682
- const children = res.result("children");
+ const children = res.result("children") || [];
683
let omg: VariableObject[] = children.map(child => new VariableObject(child[1]));
684
return omg;
685
}
0 commit comments