In The Following Code I am Getting Null Pointer Exception
try{
ClientBean[] clientInfo = clientManager.g etClientList();
System.out.prin tln("richa2"+cl ientInfo);
if (clientInfo != null ) {
form.setClientI nfo(clientInfo) ;
// form.getClientI nfo();
System.out.prin tln("if");
//System.out.prin tln("form.getCl ientInfo() "+form.getClien tInfo());
System.out.prin tln("set all info's");
forward = findMapping(con text, "success");
System.out.prin tln("After success");
} else
{ System.out.prin tln("else");
// message = "AutoCostingInt erfaceDisplayAc tion" ;
//context.setAttr ibute("message" , message);
System.out.prin tln("going in failure page");
//forward = findMapping(con text, "failure");
}
}catch(Exceptio n ex){
System.out.prin tln("inside catch"+ex);
}
return forward;
}
Can you help me regarding this ?
try{
ClientBean[] clientInfo = clientManager.g etClientList();
System.out.prin tln("richa2"+cl ientInfo);
if (clientInfo != null ) {
form.setClientI nfo(clientInfo) ;
// form.getClientI nfo();
System.out.prin tln("if");
//System.out.prin tln("form.getCl ientInfo() "+form.getClien tInfo());
System.out.prin tln("set all info's");
forward = findMapping(con text, "success");
System.out.prin tln("After success");
} else
{ System.out.prin tln("else");
// message = "AutoCostingInt erfaceDisplayAc tion" ;
//context.setAttr ibute("message" , message);
System.out.prin tln("going in failure page");
//forward = findMapping(con text, "failure");
}
}catch(Exceptio n ex){
System.out.prin tln("inside catch"+ex);
}
return forward;
}
Can you help me regarding this ?
Comment