Browse Source

Fixed null palette browser

flabbet 2 years ago
parent
commit
a05f9c433e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/PixiEditor/Views/Dialogs/PalettesBrowser.xaml.cs

+ 1 - 0
src/PixiEditor/Views/Dialogs/PalettesBrowser.xaml.cs

@@ -185,6 +185,7 @@ internal partial class PalettesBrowser : Window
     {
         await Dispatcher.InvokeAsync(async () =>
         {
+            SortedResults ??= new WpfObservableRangeCollection<Palette>();
             switch (refreshType)
             {
                 case RefreshType.All: