From 30a59c8a8bf4a3548967e488d8e0a9c38e09cc13 Mon Sep 17 00:00:00 2001 From: "Jamie.Rees" Date: Mon, 28 Nov 2016 08:10:45 +0000 Subject: [PATCH] Fixed #704 --- PlexRequests.Core.Migration/Migrations/Version1100.cs | 6 ++++++ 1 file changed, 6 insertions(+) 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));