Exception when a block property is explicitly set to NULL before save

Found in

EPiServer.CMS.Core 11.5.1

Fixed in

EPiServer.CMS.Core 11.5.3

Created

Apr 10, 2018

Updated

Apr 20, 2018

Area

CMS Core

State

Closed, Fixed and tested


Description

Currently, if a block property is explicitly nulled before saving, it fails to save version.

Steps to reproduce (pseudo code where myPage has a property MyBlock) :
myPage.Block = null;
contentRepository.Save(myPage, SaveAction.Publish);

Expected:
The version is saved and the block is cleared

Actual:
The Save call throws an exception