博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Failed to Compare two elments in a array.
阅读量:7108 次
发布时间:2019-06-28

本文共 1485 字,大约阅读时间需要 4 分钟。

最近遇到一个奇怪的问题,是第三方控件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接口。

转载于:https://www.cnblogs.com/shenfengok/archive/2012/07/27/2611670.html

你可能感兴趣的文章
实现:支付宝手机密码支付功能
查看>>
为啥百度、网易、小米都用Python?Python的用途是什么?
查看>>
Linux系统IO分析工具之iotop常用参数介绍
查看>>
软件的依赖关系:类图关系:is-a has-a use-a
查看>>
2010年美国计算机图书市场报告四:编程语言
查看>>
ME525+ MB525 android2.3.4获取ROOT权限和关闭震动(振动反馈)的方法分享
查看>>
C函数适配器
查看>>
bitrock 他家有绝活
查看>>
mysql用户管理
查看>>
IE的坏脾气——3像素Bug
查看>>
PHP+Oracle Instant Client
查看>>
Linux创建LVM
查看>>
HDU 4770 Lights Against Dudely (2013杭州赛区1001题,暴力枚举)
查看>>
[转]Javascript的匿名函数
查看>>
VirtualBox开发环境的搭建详解(转)
查看>>
FX Composer VS RenderMonkey 【转】
查看>>
创业的需求分析——创业杂记【1】
查看>>
STL中的nth_element()方法的使用
查看>>
安装jenkins插件的两种方法
查看>>
R quantile函数 | cut函数 | sample函数 | all函数 | scale函数 | do.call函数
查看>>