IDEMPIERE-923 NPE when try to print after generate invoice (manual) / Based on patch from Richard Morales

This commit is contained in:
Carlos Ruiz 2013-05-29 18:26:29 -05:00
parent f54b837d0e
commit 73de31fbc0
1 changed files with 3 additions and 2 deletions

View File

@ -383,7 +383,8 @@ public class WGenForm extends ADForm implements EventListener<Event>, WTableMode
if (log.isLoggable(Level.CONFIG)) log.config("PrintItems=" + ids.length);
m_ids = ids;
Clients.response(new AuEcho(this, "onAfterProcess", null));
if (!genForm.getProcessInfo().isError())
Clients.response(new AuEcho(this, "onAfterProcess", null));
} // generateShipments_complete
@ -559,7 +560,7 @@ public class WGenForm extends ADForm implements EventListener<Event>, WTableMode
tr.appendChild(td);
}
if (msgPresents) {
if (msgPresents && !genForm.getProcessInfo().isError()) {
Td td = new Td();
if (log.getP_Msg() != null) {
if (log.getAD_Table_ID() > 0 && log.getRecord_ID() > 0) {