Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

FALCON-1930 : testProcessInstanceRerunFailedWorkflowAction failed with NULLPOINTEREXCEPTION #122

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ public static String getActionStatus(OozieClient oozieClient, String workflowId,
throws OozieClientException {
List<WorkflowAction> wfAction = oozieClient.getJobInfo(workflowId).getActions();
for (WorkflowAction wf : wfAction) {
if (wf.getName().contains(actionName)) {
if ((wf.getName().contains(actionName)) && (wf.getExternalStatus() != null)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know why we got null in the first place ?

return wf.getExternalStatus();
}
}
Expand Down