Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon Dingley 1431 posts 3332 karma points c-trib
    Mar 06, 2012 @ 11:00
    Simon Dingley
    0

    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?

    [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

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Mar 06, 2012 @ 15:12
    Tom Fulton
    1

    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:

    public class yourClass : WorkflowType
    {
      public yourClass() {
        this.Name = "your workflow name";
        this.Id = new Guid("...");
      }

    HTH,
    Tom

  • Simon Dingley 1431 posts 3332 karma points c-trib
    Mar 06, 2012 @ 21:26
    Simon Dingley
    0

    Thanks Tom, you hit the nail on the head! I've marked your response as the solution :)

    Cheers, Simon

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies