zoukankan      html  css  js  c++  java
  • Failed to Compare two elments in a array.

    最近遇到一个奇怪的问题,是第三方控件Third Party的问题,

    Failed to Compare two elments in a array.

    System.InvalidOperationException: Failed to compare two elements in the array. ---> System.NullReferenceException: Object reference not set to an instance of an object.
       at Infragistics.Win.ValueListItemsCollection.ValueListComparer.Compare(Object o1, Object o2)
       at System.Array.BinarySearch(Array array, Int32 index, Int32 length, Object value, IComparer comparer)
       --- End of inner exception stack trace ---
       at System.Array.BinarySearch(Array array, Int32 index, Int32 length, Object value, IComparer comparer)
       at System.Collections.ArrayList.BinarySearch(Int32 index, Int32 count, Object value, IComparer comparer)
       at System.Collections.ArrayList.BinarySearch(Object value, IComparer comparer)
       at Infragistics.Win.ValueListItemsCollection.IndexOf(Object valueListItem)
       at Infragistics.Win.ValueList.set_SelectedItem(Object value)
       at K2.Mod.Core.DocumentOrganiseEdit.PopulateDropDown() in D:\K2Development\K2\K2.Mod.Core\Document Organiser\DocumentOrganiseEdit.cs:line 431
       at K2.Mod.Core.DocumentOrganiseEdit.InitializeData() in D:\K2Development\K2\K2.Mod.Core\Document Organiser\DocumentOrganiseEdit.cs:line 345
       at K2.Mod.Core.DocumentOrganiseEdit.DocumentOrganiseEdit_Shown(Object sender, EventArgs e) in D:\K2Development\K2\K2.Mod.Core\Document Organiser\DocumentOrganiseEdit.cs:line 80

    网上搜了下是因为没有实现IComparable接口。

  • 相关阅读:
    vue使用video.js解决m3u8视频播放格式
    小程序索引列表排序
    小程序实现图片上传,预览以及图片base64位处理
    小程序实现综合排序页面布局
    前端学习 html
    Linux Yum仓库介绍及服务端及客户端配置
    Saltstack 常用的模块及API
    KVM 克隆虚拟机
    KVM 虚拟机基本管理及常用命令
    Saltstack 操作目标,正则匹配,及组管理
  • 原文地址:https://www.cnblogs.com/shenfengok/p/2611670.html
Copyright © 2011-2022 走看看