Skip to content

WorkflowDefinition crashes when workflow has no tasks #1593

Description

@mcruzdev

Creating a WorkflowDefinition from a Workflow with an empty task list causes a crash.

Steps to reproduce:

Workflow workflow = WorkflowBuilder.workflow().tasks().build();
WorkflowDefinition.of(application, workflow);

Actual behavior:

TaskExecutorHelper.createExecutorList() calls iterator.next() without checking hasNext() on the empty task map, resulting in a NoSuchElementException.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions