Null reference error in ContentDependencyPropagator

Found in

EPiServer.ContentDeliveryApi 2.11.0

Fixed in

EPiServer.ContentDeliveryApi 2.13.0

Created

Jun 24, 2020

Updated

Jul 09, 2020

State

Closed, Fixed and tested


Description

When trying to startup a new commerce site the migration step fails because of event handler registered by ContentDependecyPropagator

2020-06-24 13:02:53,480 [1] ERROR EPiServer.Commerce.Internal.Migration.MigrationProgressMessenger: Migration step "Set catalog root access rights" failed with error: System.NullReferenceException: Object reference not set to an instance of an object.
at EPiServer.Core.Internal.ContentCacheKeyCreator.CreateChildrenCacheKey(ContentReference contentLink, String languageID)
at EPiServer.ContentApi.Core.OutputCache.Internal.ContentDependencyPropagator.ContentSecuritySaved(Object sender, ContentSecurityEventArg e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at EPiServer.ChangeApproval.UI.Implementation.SecuritySettingCommandService.Save(IContentSecurityRepository contentSecurityRepository, ContentReference contentReference, IContentSecurityDescriptor contentSecurityDescriptor, SecuritySaveType securitySaveType)
at EPiServer.ChangeApproval.UI.Implementation.SecuritySettingIntercept.Save(ContentReference ContentLink, IContentSecurityDescriptor contentSecurityDescriptor, SecuritySaveType securitySaveType)
at EPiServer.Commerce.Internal.Migration.Steps.SetRootAccessControlEntriesStep.Execute(IProgressMessenger progressMessenger)
at EPiServer.Commerce.Internal.Migration.MigrationManager.MigrateStep(IMigrationStep migrationStep)