diff --git a/PlexRequests.Core.Migration/Migrations/Version1100.cs b/PlexRequests.Core.Migration/Migrations/Version1100.cs index 319b570ab..a85863c1e 100644 --- a/PlexRequests.Core.Migration/Migrations/Version1100.cs +++ b/PlexRequests.Core.Migration/Migrations/Version1100.cs @@ -92,6 +92,12 @@ namespace PlexRequests.Core.Migration.Migrations var usersToNotify = UserNotifyRepo.GetAll(); var plexUsers = PlexUsers.GetAll().ToList(); var users = UserRepo.GetAll().ToList(); + + if (usersToNotify == null) + { + return; + } + foreach (var u in usersToNotify) { var selectedPlexUser = plexUsers.FirstOrDefault(x => x.Username.Equals(u.Username, StringComparison.CurrentCultureIgnoreCase));