IDEMPIERE-207 GL Journal Generator / Fix NPE when simulate option
This commit is contained in:
parent
83a3822cec
commit
4bf4364757
|
@ -521,8 +521,10 @@ public class GLJournalGenerate extends SvrProcess
|
|||
j.saveEx();
|
||||
}
|
||||
|
||||
StringBuilder msg = new StringBuilder(Msg.parseTranslation(getCtx(), "@Created@ @GL_Journal_ID@=")).append(j.getDocumentNo());
|
||||
addLog(j.get_ID(), null, null, msg.toString(), MJournal.Table_ID, j.get_ID());
|
||||
if (j != null) {
|
||||
StringBuilder msg = new StringBuilder(Msg.parseTranslation(getCtx(), "@Created@ @GL_Journal_ID@=")).append(j.getDocumentNo());
|
||||
addLog(j.get_ID(), null, null, msg.toString(), MJournal.Table_ID, j.get_ID());
|
||||
}
|
||||
|
||||
return "@OK@";
|
||||
} // doIt
|
||||
|
|
Loading…
Reference in New Issue