Skip to content

Commit 103622c

Browse files
committed
Avoid ArgumentNullException in DataSourceRow Add.
1 parent 7038065 commit 103622c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Controls/OutlookGrid/DataSourceManager.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ public object BoundItem
7777

7878
public int Add(object val)
7979
{
80+
if (val == null)
81+
return -1;
82+
8083
return List.Add(val);
8184
}
8285

0 commit comments

Comments
 (0)