RicardoPereira
Programmer
When i do not have records on the recordset i get an java.lang.NullPointerException error. I'am using a catch exception but still dont work.
This is my code:
Iterator iterator = displayList.iterator();
while(iterator.hasNext())
{
ArtClass qryClt=(ArtClass) iterator.next();
try {
out.println("<tr><td>" +
"</td><td>" + qryClt.getTest1() + "</td><td>" + qryClt.getTest2() + "</td>");
}
catch (Exception e)
{
out.println(e);
}
}
Thanks
This is my code:
Iterator iterator = displayList.iterator();
while(iterator.hasNext())
{
ArtClass qryClt=(ArtClass) iterator.next();
try {
out.println("<tr><td>" +
"</td><td>" + qryClt.getTest1() + "</td><td>" + qryClt.getTest2() + "</td>");
}
catch (Exception e)
{
out.println(e);
}
}
Thanks