Nullpointerexception

Hi,

I have the following peice of code.

<ora:loop name="orderInfo" loopId="row" className="Row" >

<%= row.getString("test") %>

I hav a coulum test in the result set. Some times the column test might hav no values.I have to display the the value whenever it constains one. How can I do it? I tried the following but it throws me nullpointerexception.

<%if(row.getString("test") !=null){ %>

<%= row.getString("test") %>

<%} %>

[775 byte] By [vivek.shankara] at [2007-10-2 17:00:03]
# 1
Hi,Any help with this?ThanksVivek
vivek.shankara at 2007-7-13 18:13:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
for checking null don't use null word use "" remember "" is different and " " is different one means nothing whereas the second means blank space both have different meanings.
Innovaa at 2007-7-13 18:13:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
in continuation with above mail if you are comapring string then useif(str1.equals(""))
Innovaa at 2007-7-13 18:13:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...