[Mono-devel-list] [PATCH] Fix NullReferenceException in DataView

Marc Haisenko haisenko at webport.de
Thu Nov 11 11:29:55 EST 2004


Hi folks,
attached is a small patch that fixes some NullReferenceExceptions in 
System.Data.DataView.cs and adds a more descriptive Exception in 
DataView.this[int].

Problem was that rowCache was null by default. The patch always assigns it an 
empty array instead of null, which should fix the NullReferenceExceptions 
that for example DataView.Count normally throws.

C'ya,
	Marc

-- 
Marc Haisenko
Systemspezialist
Webport IT-Services GmbH
mailto: haisenko at webport.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DataView.cs.patch
Type: text/x-diff
Size: 1017 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20041111/0a75e936/attachment.bin 


More information about the Mono-devel-list mailing list