From 8b354bc3c2b786dc8164ab82ac3664e5f28dfaa3 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Mon, 27 Feb 2017 07:14:23 +0100 Subject: [PATCH] Exception in fileActions.ts (fixes #21460) --- src/vs/workbench/parts/files/browser/fileActions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/files/browser/fileActions.ts b/src/vs/workbench/parts/files/browser/fileActions.ts index 2a5ced66a84..425b62f28d6 100644 --- a/src/vs/workbench/parts/files/browser/fileActions.ts +++ b/src/vs/workbench/parts/files/browser/fileActions.ts @@ -989,7 +989,7 @@ export const pasteIntoFocusedFilesExplorerViewItem = (accessor: ServicesAccessor const instantiationService = accessor.get(IInstantiationService); withFocussedFilesExplorerViewItem(accessor).then(res => { - if (res.item) { + if (res && res.item) { const pasteAction = instantiationService.createInstance(PasteFileAction, res.tree, res.item); if (pasteAction._isEnabled()) { pasteAction.run().done(null, errors.onUnexpectedError); -- GitLab