Bugfix null timer in CoreRuntime

This commit is contained in:
Stephan
2019-02-05 20:01:20 +01:00
parent b403e9b3b7
commit f752861e10

View File

@@ -271,7 +271,7 @@ namespace Umbraco.Core.Runtime
{
_state.Level = RuntimeLevel.BootFailed;
_state.Reason = RuntimeLevelReason.BootFailedOnException;
timer.Fail();
timer?.Fail();
throw;
}
}
@@ -287,7 +287,7 @@ namespace Umbraco.Core.Runtime
}
catch
{
timer.Fail();
timer?.Fail();
throw;
}
}