IDEMPIERE-1943 NPE using 2Pack with migrated DB with null on AD_Client_UU
This commit is contained in:
parent
a12919dd2f
commit
bb7dd0a1cc
|
@ -229,6 +229,8 @@ public class PackOut
|
||||||
.append("-")
|
.append("-")
|
||||||
.append(client.getName());
|
.append(client.getName());
|
||||||
atts.addAttribute("", "", "Client", "CDATA", sb.toString());
|
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());
|
atts.addAttribute("", "", "AD_Client_UU", "CDATA", client.getAD_Client_UU());
|
||||||
|
|
||||||
packoutHandler.startElement("","","idempiere",atts);
|
packoutHandler.startElement("","","idempiere",atts);
|
||||||
|
|
Loading…
Reference in New Issue