From 53e1f282360e85cafa81328153c6deff6bf19d8c Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Thu, 10 May 2018 08:50:47 +0200 Subject: [PATCH] fix #49552 --- src/vs/code/electron-main/window.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/code/electron-main/window.ts b/src/vs/code/electron-main/window.ts index af71a291e7b..338e1a3a6be 100644 --- a/src/vs/code/electron-main/window.ts +++ b/src/vs/code/electron-main/window.ts @@ -367,7 +367,7 @@ export class CodeWindow implements ICodeWindow { } // To prevent flashing, we set the window visible after the page has finished to load but before Code is loaded - if (!this._win.isVisible()) { + if (this._win && !this._win.isVisible()) { if (this.windowState.mode === WindowMode.Maximized) { this._win.maximize(); } -- GitLab