Hi Adrien,

Thanks a lot.! It worked.!

With Best Regards,
Srijith.

On 7/19/07, Adrien Dessemond <[EMAIL PROTECTED]> 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 : [EMAIL PROTECTED]
Home Page : http://srijith.unni.googlepages.com/
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to