From 1dd11b105dd20b1a2e39c50124b6561a073e9fe7 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 27 Jan 2012 16:50:14 -0500 Subject: [PATCH] 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) --- org.adempiere.base/src/org/compiere/process/SvrProcess.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/process/SvrProcess.java b/org.adempiere.base/src/org/compiere/process/SvrProcess.java index a3ec472311..c9af9566cd 100644 --- a/org.adempiere.base/src/org/compiere/process/SvrProcess.java +++ b/org.adempiere.base/src/org/compiere/process/SvrProcess.java @@ -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