Skip to content

[Fix #1315] Avoid null pointer exception if input is null#1316

Merged
fjtirado merged 1 commit intoserverlessworkflow:mainfrom
fjtirado:Fix_#1315
Apr 15, 2026
Merged

[Fix #1315] Avoid null pointer exception if input is null#1316
fjtirado merged 1 commit intoserverlessworkflow:mainfrom
fjtirado:Fix_#1315

Conversation

@fjtirado
Copy link
Copy Markdown
Collaborator

Fix #1315

Copilot AI review requested due to automatic review settings April 15, 2026 10:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes #1315 by preventing a NullPointerException when a RunWorkflow subflow task omits the optional input block (common in DSL usage), so the subflow can fall back to the current task input.

Changes:

  • Add a null check around SubflowConfiguration.getInput() before accessing input properties.
  • Default missing subflow input parameters to an empty map when building the map resolver.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…s null

Signed-off-by: fjtirado <ftirados@redhat.com>
@fjtirado fjtirado merged commit dcc8f61 into serverlessworkflow:main Apr 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NullPointer if Subflow is running wihtout specifiying input

2 participants