Skip to content

Commit f28bffb

Browse files
authored
Fix NullReferenceException for some scenarios (#1200)
1 parent c04daf4 commit f28bffb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Files/View Models/SettingsViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ private void AddDefaultLocations()
7979

8080
private async void PopulatePinnedSidebarItems()
8181
{
82+
App.SidebarPinned = new SidebarPinnedModel();
83+
8284
StorageFolder cacheFolder = ApplicationData.Current.LocalCacheFolder;
8385

8486
StorageFile pinnedItemsFile;

Files/Views/InstanceTabsView.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public InstanceTabsView()
3939
tabView = TabStrip;
4040

4141
App.AppSettings = new SettingsViewModel();
42-
App.SidebarPinned = new SidebarPinnedModel();
4342
App.InteractionViewModel = new InteractionViewModel();
4443

4544
// Turn on Navigation Cache

0 commit comments

Comments
 (0)