diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Main.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Main.cs index 5c0d6ea10d..30396e537a 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Main.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Program/Main.cs @@ -130,9 +130,12 @@ namespace Microsoft.Plugin.Program public void UpdateUWPIconPath(Theme theme) { - foreach (UWPApplication app in _packageRepository) + if (_packageRepository != null) { - app.UpdateLogoPath(theme); + foreach (UWPApplication app in _packageRepository) + { + app.UpdateLogoPath(theme); + } } }