Skip to content

Commit

Permalink
Fix displaying of subtasks (MID-5161)
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Feb 28, 2019
1 parent c3b66d9 commit 80467a8
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -1342,8 +1342,11 @@ private List<?> getSubtasks(Object task, OperationResult result) throws SchemaEx
return ((Task) task).listSubtasks(result);
} else if (task instanceof TaskType) {
return listPersistentSubtasksForTask(((TaskType) task).getTaskIdentifier(), result);
} else if (task instanceof PrismObject<?>) {
//noinspection unchecked
return listPersistentSubtasksForTask(((PrismObject<TaskType>) task).asObjectable().getTaskIdentifier(), result);
} else {
throw new IllegalArgumentException("task: " + task);
throw new IllegalArgumentException("task: " + task + " (of class " + (task != null ? task.getClass() : "null") + ")");
}
}

Expand Down

0 comments on commit 80467a8

Please sign in to comment.