Skip to content

Commit 3d81719

Browse files
committed
Fix: Fixed null ref when closing tabs
1 parent 37c8fff commit 3d81719

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Files.App/Views/PaneHolderPage.xaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,9 @@ public void Dispose()
425425
MainWindow.Instance.SizeChanged -= MainWindow_SizeChanged;
426426
PaneLeft?.Dispose();
427427
PaneRight?.Dispose();
428-
PaneResizer.DoubleTapped -= PaneResizer_OnDoubleTapped;
428+
429+
if (PaneResizer is not null)
430+
PaneResizer.DoubleTapped -= PaneResizer_OnDoubleTapped;
429431
}
430432
}
431433
}

0 commit comments

Comments
 (0)