From c66f9c6f100decc9ee9b53cd8896d6aa5008338f Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 27 Dec 2010 08:34:05 +0800 Subject: [PATCH] Fixed NPE. --- .../src/org/adempiere/pipo2/handler/MenuElementHandler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/MenuElementHandler.java b/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/MenuElementHandler.java index 62439491dc..1d9dd54337 100644 --- a/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/MenuElementHandler.java +++ b/org.adempiere.pipo.handlers/src/org/adempiere/pipo2/handler/MenuElementHandler.java @@ -149,7 +149,10 @@ public class MenuElementHandler extends AbstractElementHandler { else colValue = "false"; 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)); backup.setAD_Package_Imp_Detail_ID(impDetail.getAD_Package_Imp_Detail_ID());