This commit is contained in:
tidusjar 2017-08-23 22:01:32 +01:00
parent ba2fd48067
commit d7f0f61ece
8 changed files with 31 additions and 20 deletions

View file

@ -63,7 +63,7 @@ namespace Ombi.Store.Repository
{
var obj = await Db.Settings.FirstOrDefaultAsync(x => x.SettingsName == settingsName);
Db.Entry(obj).Reload();
if (obj != null) Db.Entry(obj).Reload();
return obj;
}