if (taskInfo != null) {
taskIds.add(taskInfo.getTaskId());
}
return taskIds;
}
<BUG>private static boolean taskIsRunningOrStaging(TaskStatus taskStatus) {

if (null == taskStatus) {
return false;
}
switch (taskStatus.getState()) {
</BUG>
case TASK_RUNNING:

if (taskInfo != null) {
taskIds.add(taskInfo.getTaskId());
}
return taskIds;
}
private static boolean taskIsRunningOrStaging(Optional<TaskStatus> taskStatus) {
if (taskStatus.isPresent()) {
switch (taskStatus.get().getState()) {
case TASK_RUNNING:
