File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -322,15 +322,15 @@ public async Task LoadThumbnailAsync()
322322 if ( Root is not null )
323323 {
324324 using var thumbnail = await DriveHelpers . GetThumbnailAsync ( Root ) ;
325- IconData ??= await thumbnail . ToByteArrayAsync ( ) ;
325+ IconData ??= thumbnail is not null ? await thumbnail . ToByteArrayAsync ( ) : null ;
326326 }
327327
328328 if ( string . Equals ( DeviceID , "network-folder" ) )
329- IconData ??= UIHelpers . GetSidebarIconResourceInfo ( Constants . ImageRes . Network ) . IconData ;
329+ IconData ??= UIHelpers . GetSidebarIconResourceInfo ( Constants . ImageRes . Network ) ? . IconData ;
330330
331- IconData ??= UIHelpers . GetSidebarIconResourceInfo ( Constants . ImageRes . Folder ) . IconData ;
331+ IconData ??= UIHelpers . GetSidebarIconResourceInfo ( Constants . ImageRes . Folder ) ? . IconData ;
332332
333- Icon ??= await IconData . ToBitmapAsync ( ) ;
333+ Icon ??= IconData is not null ? await IconData . ToBitmapAsync ( ) : null ;
334334 }
335335
336336 private string GetSizeString ( )
You can’t perform that action at this time.
0 commit comments