From 8b21f5d6fc2d1c7978902b30e188358435f268df Mon Sep 17 00:00:00 2001 From: Jiaofen Xu Date: Fri, 18 Mar 2022 16:57:01 -0700 Subject: [PATCH] Fix NullPointerException for string compare --- .../com/netflix/conductor/common/run/WorkflowSummary.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/netflix/conductor/common/run/WorkflowSummary.java b/common/src/main/java/com/netflix/conductor/common/run/WorkflowSummary.java index 008f3404e2..333cf29dfc 100644 --- a/common/src/main/java/com/netflix/conductor/common/run/WorkflowSummary.java +++ b/common/src/main/java/com/netflix/conductor/common/run/WorkflowSummary.java @@ -311,9 +311,9 @@ && getPriority() == that.getPriority() && getWorkflowType().equals(that.getWorkflowType()) && getWorkflowId().equals(that.getWorkflowId()) && Objects.equals(getCorrelationId(), that.getCorrelationId()) - && getStartTime().equals(that.getStartTime()) - && getUpdateTime().equals(that.getUpdateTime()) - && getEndTime().equals(that.getEndTime()) + && StringUtils.equals(getStartTime(), that.getStartTime()) + && StringUtils.equals(getUpdateTime(), that.getUpdateTime()) + && StringUtils.equals(getEndTime(), that.getEndTime()) && getStatus() == that.getStatus() && Objects.equals(getReasonForIncompletion(), that.getReasonForIncompletion()) && Objects.equals(getEvent(), that.getEvent());