From bd7600fcd9ef8a21c4f005f37e1545ff8694b94c Mon Sep 17 00:00:00 2001 From: Nicolas Micoud <58596990+nmicoud@users.noreply.github.com> Date: Mon, 22 Feb 2021 03:56:32 +0100 Subject: [PATCH] IDEMPIERE-4710 : NPE in ProcessInfo.getLastServerRebootDate() (#597) --- org.adempiere.base/src/org/compiere/process/ProcessInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/process/ProcessInfo.java b/org.adempiere.base/src/org/compiere/process/ProcessInfo.java index e88c97403c..fa347b1472 100644 --- a/org.adempiere.base/src/org/compiere/process/ProcessInfo.java +++ b/org.adempiere.base/src/org/compiere/process/ProcessInfo.java @@ -920,7 +920,7 @@ public class ProcessInfo implements Serializable .setOnlyActiveRecords(true) .first(); - return lastServerSession.getCreated(); + return lastServerSession != null ? lastServerSession.getCreated() : null; } private IProcessUI processUI;