Skip to content

Commit 8b354bc

Browse files
author
Benjamin Pasero
committed
Exception in fileActions.ts (fixes microsoft#21460)
1 parent d41c48d commit 8b354bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/parts/files/browser/fileActions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ export const pasteIntoFocusedFilesExplorerViewItem = (accessor: ServicesAccessor
989989
const instantiationService = accessor.get(IInstantiationService);
990990

991991
withFocussedFilesExplorerViewItem(accessor).then(res => {
992-
if (res.item) {
992+
if (res && res.item) {
993993
const pasteAction = instantiationService.createInstance(PasteFileAction, res.tree, res.item);
994994
if (pasteAction._isEnabled()) {
995995
pasteAction.run().done(null, errors.onUnexpectedError);

0 commit comments

Comments
 (0)