The Free Software Media System - Server Backend & API
Fix nullability errors in Emby.Notifications
crobiberof3e74cb42192
diff --git a/Emby.Notifications/NotificationEntryPoint.cs b/Emby.Notifications/NotificationEntryPoint.csindex 7116d52b11..7433d3c8ae 100644--- a/Emby.Notifications/NotificationEntryPoint.cs+++ b/Emby.Notifications/NotificationEntryPoint.cs@@ -83,7 +83,7 @@ namespace Emby.Notificationsreturn Task.CompletedTask;}- private async void OnAppHostHasPendingRestartChanged(object sender, EventArgs e)+ private async void OnAppHostHasPendingRestartChanged(object? sender, EventArgs e){var type = NotificationType.ServerRestartRequired.ToString();@@ -99,7 +99,7 @@ namespace Emby.Notificationsawait SendNotification(notification, null).ConfigureAwait(false);}- private async void OnActivityManagerEntryCreated(object sender, GenericEventArgs<ActivityLogEntry> e)+ private async void OnActivityManagerEntryCreated(object? sender, GenericEventArgs<ActivityLogEntry> e){var entry = e.Argument;@@ -132,7 +132,7 @@ namespace Emby.Notificationsreturn _config.GetConfiguration<NotificationOptions>("notifications");}- private async void OnAppHostHasUpdateAvailableChanged(object sender, EventArgs e)+ private async void OnAppHostHasUpdateAvailableChanged(object? sender, EventArgs e){if (!_appHost.HasUpdateAvailable){@@ -151,7 +151,7 @@ namespace Emby.Notificationsawait SendNotification(notification, null).ConfigureAwait(false);}- private void OnLibraryManagerItemAdded(object sender, ItemChangeEventArgs e)+ private void OnLibraryManagerItemAdded(object? sender, ItemChangeEventArgs e){if (!FilterItem(e.Item)){@@ -197,7 +197,7 @@ namespace Emby.Notificationsreturn item.SourceType == SourceType.Library;}- private async void LibraryUpdateTimerCallback(object state)+ private async void LibraryUpdateTimerCallback(object? state){List<BaseItem> items;