We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2ed6aa commit f3907e2Copy full SHA for f3907e2
Microsoft.Toolkit.Uwp.Notifications/Toasts/Compat/Desktop/Win32AppInfo.cs
@@ -126,7 +126,7 @@ private static string HashAppId(string appId)
126
private static string GetDisplayNameFromCurrentProcess(Process process)
127
{
128
// If AssemblyTitle is set, use that
129
- var assemblyTitleAttr = Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyTitleAttribute>();
+ var assemblyTitleAttr = Assembly.GetEntryAssembly()?.GetCustomAttribute<AssemblyTitleAttribute>();
130
if (assemblyTitleAttr != null)
131
132
return assemblyTitleAttr.Title;
0 commit comments