Login

Editor will throw a NullReferenceException in certain situations

Versions: CMS 5 SP2, FAQ number: 222,

In EPiServer CMS 5 SP2, the Editor will throw a NullReferenceException in the following situations:

  • if you're comparing a page in different languages using the combo box
  • if you're trying to edit a page that isn't the master language and that has a property of the type "Time/Date"
  • if the page uses delayed publishing

If the site is affected by any of these symptoms, there is a workaround available.

Workaround

Register an adapter for our PropertyDateControl. The required adapter can be found here and it needs to be deployed in the project or to include the assembly in the site's /bin directory. To register the adapter in the site, add the following line to the file /App_Browsers/AdapterMappings.browser.

<adapter controlType="EPiServer.Web.PropertyControls.PropertyDateControl" adapterType="EPiServer.PropertyDateAdapter" />

EPiTrace logger