IDEMPIERE-1943 NPE using 2Pack with migrated DB with null on AD_Client_UU

This commit is contained in:
Carlos Ruiz 2014-05-08 17:33:02 -05:00
parent a12919dd2f
commit bb7dd0a1cc
1 changed files with 2 additions and 0 deletions

View File

@ -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);