U4-9108 - add missing change

This commit is contained in:
Stephan
2016-11-15 13:44:44 +01:00
parent 62325f0a27
commit e499f2d148

View File

@@ -114,7 +114,8 @@ namespace Umbraco.Core.Sync
// - contain a scheme
// - end or not with a slash, it will be taken care of
// eg "http://www.mysite.com/umbraco"
var registrar = ServerRegistrarResolver.Current.Registrar as IServerRegistrar2;
var resolver = ServerRegistrarResolver.HasCurrent ? ServerRegistrarResolver.Current : null;
var registrar = resolver == null ? null : resolver.Registrar as IServerRegistrar2;
url = registrar == null ? null : registrar.GetCurrentServerUmbracoApplicationUrl();
if (url.IsNullOrWhiteSpace() == false)
{