U4-1400 - Attempting a rollback gives YSOD

Created by Sebastiaan Janssen 07 Jan 2013, 10:56:58 Updated by Sebastiaan Janssen 10 Jan 2013, 13:22:28

Is required for: U4-1420

In Document.cs GetVersions() gets all the number of versions correctly, but all versions are null, so then selecting them into the versionlist craps out:

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.] umbraco.cms.businesslogic.web.Document.b__f(IContent x) +53 System.Linq.WhereSelectEnumerableIterator2.MoveNext() +145 System.Linq.Buffer1..ctor(IEnumerable1 source) +216 System.Linq.Enumerable.ToArray(IEnumerable1 source) +77 umbraco.cms.businesslogic.web.Document.GetVersions() +230 umbraco.presentation.dialogs.rollBack.Page_Load(Object sender, EventArgs e) +764 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51 System.Web.UI.Control.OnLoad(EventArgs e) +92 umbraco.BasePages.BasePage.OnLoad(EventArgs e) +68 System.Web.UI.Control.LoadRecursive() +54 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

Comments

Priority: Normal

Type: Bug

State: Fixed

Assignee: Morten Christensen

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.0.0

Due in version: 6.0.0

Sprint:

Story Points:

Cycle: