pro_jsp thread: JSP servlet exception
what happens if genClientBean.getClientType() returns null?
Try seperating this out like:
if ( genClientBean != null )
{
String t = genClientBean.getClientType();
if (t != null && t.equalsIgnoreCase( "P" ) )
{
partClientBean = (PartClientBean) genClientBean;
}
}
With short circuiting, if t is null, the other side of && is not evaluated.
Which is where you might be getting that null pointer exception.
|





