Bugfix CoreRuntime

(cherry picked from commit 2209b37a4a and 7f31ddc250)
This commit is contained in:
Sebastiaan Janssen
2019-03-11 14:45:48 +01:00
parent 9a0aacd45a
commit 9d64c4e551

View File

@@ -168,7 +168,7 @@ namespace Umbraco.Core.Runtime
_state.BootFailedException = bfe;
}
timer.Fail(exception: bfe); // be sure to log the exception - even if we repeat ourselves
timer?.Fail(exception: bfe); // be sure to log the exception - even if we repeat ourselves
// if something goes wrong above, we may end up with no factory
// meaning nothing can get the runtime state, etc - so let's try
@@ -242,7 +242,7 @@ namespace Umbraco.Core.Runtime
}
catch
{
timer.Fail();
timer?.Fail();
throw;
}
}