This commit is contained in:
Andrew Leader 2021-03-18 14:53:35 -07:00
Родитель a2ed6aa69d
Коммит f3907e245d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -126,7 +126,7 @@ namespace Microsoft.Toolkit.Uwp.Notifications
private static string GetDisplayNameFromCurrentProcess(Process process) private static string GetDisplayNameFromCurrentProcess(Process process)
{ {
// If AssemblyTitle is set, use that // If AssemblyTitle is set, use that
var assemblyTitleAttr = Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyTitleAttribute>(); var assemblyTitleAttr = Assembly.GetEntryAssembly()?.GetCustomAttribute<AssemblyTitleAttribute>();
if (assemblyTitleAttr != null) if (assemblyTitleAttr != null)
{ {
return assemblyTitleAttr.Title; return assemblyTitleAttr.Title;