IDEMPIERE-115 Implement feedback for process and report

Found NPE in logs
===========> ProcessUtil.startJavaProcess: org.compiere.process.NoteDelete [14]
java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:394)
        at org.compiere.process.SvrProcess.startProcess(SvrProcess.java:114)
This commit is contained in:
Carlos Ruiz 2012-01-27 16:50:14 -05:00
parent 96dc429d26
commit 1dd11b105d
1 changed files with 2 additions and 1 deletions

View File

@ -111,7 +111,8 @@ public abstract class SvrProcess implements ProcessCall
try
{
m_ctx.put(PROCESS_INFO_CTX_KEY, m_pi);
m_ctx.put(PROCESS_MONITOR_CTX_KEY, processMonitor);
if (processMonitor != null)
m_ctx.put(PROCESS_MONITOR_CTX_KEY, processMonitor);
success = process();
}
finally