[PTRun][Program]Add null check to fix a race condition on updating UWP icon paths (#33053)

This commit is contained in:
Davide Giacometti 2024-06-04 13:37:09 +02:00 committed by GitHub
parent 37059d4db0
commit b6f0c69e13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}
}
}