Fixed NPE.

This commit is contained in:
Heng Sin Low 2010-12-27 08:34:05 +08:00
parent 221ccef992
commit c66f9c6f10
1 changed files with 4 additions and 1 deletions

View File

@ -149,7 +149,10 @@ public class MenuElementHandler extends AbstractElementHandler {
else else
colValue = "false"; colValue = "false";
else else
colValue = rs.getObject(q).toString(); {
Object obj = rs.getObject(q);
colValue = obj == null ? "" : obj.toString();
}
X_AD_Package_Imp_Backup backup = new X_AD_Package_Imp_Backup(ctx, 0, getTrxName(ctx)); X_AD_Package_Imp_Backup backup = new X_AD_Package_Imp_Backup(ctx, 0, getTrxName(ctx));
backup.setAD_Package_Imp_Detail_ID(impDetail.getAD_Package_Imp_Detail_ID()); backup.setAD_Package_Imp_Detail_ID(impDetail.getAD_Package_Imp_Detail_ID());