Null Pointer Exception while passing a value.

Hello,

Please help me out with this,

The scene is,

::::: In my database, one field say Day, in Table Course , is there.

When I am entering decimal or rounded value like 2 or 4.5, its working fine but when i am not enetering anything, its throwing null pointer exception ,, i know as its nt getting value thats why its there but can anyone please gimmie a sample code written so that i can get rid of thsi ASAP, i will be highly thankful to u.

Thanks,

Naveen Dutt.

[506 byte] By [MrDutta] at [2007-10-3 4:56:08]
# 1
Hi NaveenConsidering "Day" field as a NUMBER TYPE in your DB, you can write the following code in the Source File before you use the value of DAY variable.if (Day.equals("") || (Day.equals(null)) || (Day.equals(" ")))Day = null;ThanksJava@Jesal.
Java@Jesala at 2007-7-14 23:01:20 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...