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();
|
j.saveEx();
|
||||||
}
|
}
|
||||||
|
|
||||||
StringBuilder msg = new StringBuilder(Msg.parseTranslation(getCtx(), "@Created@ @GL_Journal_ID@=")).append(j.getDocumentNo());
|
if (j != null) {
|
||||||
addLog(j.get_ID(), null, null, msg.toString(), MJournal.Table_ID, j.get_ID());
|
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@";
|
return "@OK@";
|
||||||
} // doIt
|
} // doIt
|
||||||
|
|
Loading…
Reference in New Issue