outputServices: null guard

This commit is contained in:
isidor
2016-02-05 10:40:50 +01:00
parent 0657e74daf
commit ffc47ca36d
@@ -167,7 +167,7 @@ export class OutputService implements IOutputService {
this.storageService.store(OUTPUT_ACTIVE_CHANNEL_KEY, this.activeChannel, StorageScope.WORKSPACE);
return this.panelService.openPanel(OUTPUT_PANEL_ID, !preserveFocus).then((outputPanel: OutputPanel) => {
return outputPanel.setInput(OutputEditorInput.getInstance(this.instantiationService, channel), EditorOptions.create({ preserveFocus: preserveFocus })).
return outputPanel && outputPanel.setInput(OutputEditorInput.getInstance(this.instantiationService, channel), EditorOptions.create({ preserveFocus: preserveFocus })).
then(() => outputPanel);
});
}