From bb7dd0a1cc60caae1b0c655c385f8a4f09a86a14 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 8 May 2014 17:33:02 -0500 Subject: [PATCH] IDEMPIERE-1943 NPE using 2Pack with migrated DB with null on AD_Client_UU --- org.adempiere.pipo/src/org/adempiere/pipo2/PackOut.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.adempiere.pipo/src/org/adempiere/pipo2/PackOut.java b/org.adempiere.pipo/src/org/adempiere/pipo2/PackOut.java index fba147e04e..4161c57663 100644 --- a/org.adempiere.pipo/src/org/adempiere/pipo2/PackOut.java +++ b/org.adempiere.pipo/src/org/adempiere/pipo2/PackOut.java @@ -229,6 +229,8 @@ public class PackOut .append("-") .append(client.getName()); atts.addAttribute("", "", "Client", "CDATA", sb.toString()); + if (client.getAD_Client_UU() == null) + throw new IllegalStateException("2Pack requires UUID on AD_Client"); atts.addAttribute("", "", "AD_Client_UU", "CDATA", client.getAD_Client_UU()); packoutHandler.startElement("","","idempiere",atts);