OSDN Git Service

ListBox has a problem with null named items.. this returns String.Empty when null;
authorDouglas R. Miles <logicmoo@gmail.com>
Tue, 6 Oct 2009 23:17:43 +0000 (23:17 +0000)
committerDouglas R. Miles <logicmoo@gmail.com>
Tue, 6 Oct 2009 23:17:43 +0000 (23:17 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@319 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/Core/ListItems/FriendsListItem.cs

index c20431f..c88f15c 100644 (file)
@@ -44,7 +44,7 @@ namespace Radegast
 \r
         public override string ToString()\r
         {\r
-            return friend.Name;\r
+            return friend.Name ?? String.Empty;\r
         }\r
 \r
         public int CompareTo(object obj)\r