Today I am getting an exception when trying to add/edit workflow in Contour however there doesn't seem to be enough detail in the exception to determine what exactly the issue relates to - any ideas?
[NullReferenceException: Object reference not set to an instance of an object.]
Umbraco.Forms.Core.Common.ProviderCollection`1.(T , T ) +9
System.FunctorComparer`1.Compare(T x, T y) +19
System.Collections.Generic.ArraySortHelper`1.SwapIfGreaterWithItems(T[] keys, IComparer`1 comparer, Int32 a, Int32 b) +91
System.Collections.Generic.ArraySortHelper`1.QuickSort(T[] keys, Int32 left, Int32 right, IComparer`1 comparer) +58
System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer) +93
[InvalidOperationException: Failed to compare two elements in the array.]
System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer) +330
System.Array.Sort(T[] array, Int32 index, Int32 length, IComparer`1 comparer) +186
System.Collections.Generic.List`1.Sort(Comparison`1 comparison) +108
Umbraco.Forms.Core.Common.ProviderCollection`1.GetProviders() +448
Umbraco.Forms.UI.Dialogs.editWorkflowDialog.Page_Load(Object sender, EventArgs e) +296
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +91
umbraco.BasePages.BasePage.OnLoad(EventArgs e) +14
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
I have a good guess - do you have a custom WorkflowType that doesn't have a Name property set? I think it's trying to sort workflow types by name on that screen.
Ex:
public class yourClass : WorkflowType { public yourClass() { this.Name = "your workflow name"; this.Id = new Guid("..."); }
Umbraco.Forms.Core.Common.ProviderCollection - Null Reference Exception
Today I am getting an exception when trying to add/edit workflow in Contour however there doesn't seem to be enough detail in the exception to determine what exactly the issue relates to - any ideas?
Hi Simon,
I have a good guess - do you have a custom WorkflowType that doesn't have a Name property set? I think it's trying to sort workflow types by name on that screen.
Ex:
HTH,
Tom
Thanks Tom, you hit the nail on the head! I've marked your response as the solution :)
Cheers, Simon
is working on a reply...