[Mono-list] Exception thrown by IDataReader.Get

~ * ~ Srijith Unni ~ * ~ srijith.unni at gmail.com
Thu Jul 19 07:48:20 EDT 2007


Hi Adrien,

 Thanks a lot.! It worked.!

With Best Regards,
Srijith.

On 7/19/07, Adrien Dessemond <adrien.dessemond at softhome.net> wrote:
>
> On Thu, 2007-19-07 at 11:06 +0530, ~ * ~ Srijith Unni ~ * ~ wrote:
>
> Hello Srijith,
>
> > The stack trace seen is ,
> >
> >    Unhandled Exception: System.NullReferenceException: Object
> > reference not set to an instance of an object
> >             at Mono.Data.SqliteClient.SqliteDataReader.GetString
> > (Int32 i) [0x00000]
>
> You must always test against IsDBNull() when you use nullable fields :
>
> if(yourDataReader.IsDBNull(offset+1)) { .....
>
>
> Kind regards,
>
> Adrien
>
>
>


-- 
Thanks & Regards,
--
A.Srijith.K.Unni
Senior Software Engineer
Novell Software Development Pvt. Ltd.
49/1 & 49/3 Garvebhavipalya,
7th Mile, Hosur Road,
Bangalore - 560068,
Karnataka
INDIA
Phone : 080-41869000 Extn: 2242
Mobile : 0 99022 44688
Mail ID : srijith.unni at gmail.com
Home Page : http://srijith.unni.googlepages.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070719/ed8f4d28/attachment.html 


More information about the Mono-list mailing list