diff --git a/src/vs/workbench/parts/files/browser/fileActions.ts b/src/vs/workbench/parts/files/browser/fileActions.ts index 2a5ced66a84d99a3f037c48c505a91ce0b866ce0..425b62f28d67be3fb9aab25a9a1053e2bd256ff3 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);