KeyValueService supports more weird situations

This commit is contained in:
Stephan
2019-01-25 11:57:08 +01:00
parent 6ee8ef0a07
commit bb07921363

View File

@@ -40,7 +40,7 @@ namespace Umbraco.Core.Services.Implement
// if already running 8, either following an upgrade or an install,
// then everything should be ok (the table should exist, etc)
if (UmbracoVersion.LocalVersion.Major >= 8)
if (UmbracoVersion.LocalVersion != null && UmbracoVersion.LocalVersion.Major >= 8)
return;
// else we are upgrading from 7, we can assume that the locks table