diff --git a/src/Consolonia.Core/Controls/FileSavePickerViewModel.cs b/src/Consolonia.Core/Controls/FileSavePickerViewModel.cs index e3cdc31..a6bdd04 100644 --- a/src/Consolonia.Core/Controls/FileSavePickerViewModel.cs +++ b/src/Consolonia.Core/Controls/FileSavePickerViewModel.cs @@ -24,7 +24,7 @@ protected override bool FilterItem(IStorageItem item) if (item is IStorageFolder) return true; if (item is IStorageFile file) { - if (SelectedFileType?.Patterns == null || SelectedFileType.Patterns.Count == 0) + if (SelectedFileType == null || SelectedFileType.Patterns == null || SelectedFileType.Patterns.Count == 0) return true; foreach (string pattern in SelectedFileType.Patterns)