File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/Files.App/Utils/Archives Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,9 @@ public static async Task DecompressArchiveHereAsync(IShellPage associatedInstanc
178
178
BaseStorageFile archive = await StorageHelpers . ToStorageItem < BaseStorageFile > ( selectedItem . ItemPath ) ;
179
179
BaseStorageFolder currentFolder = await StorageHelpers . ToStorageItem < BaseStorageFolder > ( associatedInstance . FilesystemViewModel . CurrentFolder . ItemPath ) ;
180
180
181
+ if ( archive is null )
182
+ return ;
183
+
181
184
if ( await FilesystemTasks . Wrap ( ( ) => IsArchiveEncrypted ( archive ) ) )
182
185
{
183
186
DecompressArchiveDialog decompressArchiveDialog = new ( ) ;
@@ -213,6 +216,9 @@ public static async Task DecompressArchiveToChildFolderAsync(IShellPage associat
213
216
BaseStorageFolder currentFolder = await StorageHelpers . ToStorageItem < BaseStorageFolder > ( associatedInstance . FilesystemViewModel . CurrentFolder . ItemPath ) ;
214
217
BaseStorageFolder destinationFolder = null ;
215
218
219
+ if ( archive is null )
220
+ return ;
221
+
216
222
if ( await FilesystemTasks . Wrap ( ( ) => DecompressHelper . IsArchiveEncrypted ( archive ) ) )
217
223
{
218
224
DecompressArchiveDialog decompressArchiveDialog = new ( ) ;
You can’t perform that action at this time.
0 commit comments