#17 Fix for GetNthItemInDisplayOrder() and GetDisplayOrderOfItemIndex() NullReferenceException

v2.0
closed
nobody
None
1
2014-04-25
2013-05-16
marfarma
No

Fix for GetNthItemInDisplayOrder() and GetDisplayOrderOfItemIndex()

When ShowGroups == true && Groups.Count == 0 GetNthItemInDisplayOrder() would return -1 and GetDisplayOrderOfItemIndex() would return null, which would cause a NullReferenceException in the calling method.

ShowGroups == true && Groups.Count == 0 is probably an invalid state, but I figured it was better to handle it in these two methods than try to prevent it from occurring in the first place.

1 Attachments

Discussion

  • marfarma
    marfarma
    2013-05-17

    The olv object had HasCollapsableGroups = True, however all columns had Groupable = False

    That's how ShowGroups == true && Groups.Count == 0

     
  • Phillip Piper
    Phillip Piper
    2014-04-25

    • status: open --> closed
     
  • Phillip Piper
    Phillip Piper
    2014-04-25

    Fixed