Skip to content

[RUN-5079] Fix NPE in executions query --outformat when description is null - #654

Open
fdevans wants to merge 1 commit into
mainfrom
fix/650-null-execution-description
Open

fdevans wants to merge 1 commit into
mainfrom
fix/650-null-execution-description

Conversation

@fdevans

@fdevans fdevans commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Fixes #650

Execution.shortened() called indexOf on a null description, crashing rd executions query --outformat (and the ad-hoc basic summary). A null description now becomes an empty string.

Added a Spock test in ExecutionSpec covering a null description.

Copilot AI balanced review requested due to automatic review settings October 14, 2026 22:08
@fdevans fdevans added the to-jira (automation) add to jira label Oct 14, 2026
@fdevans fdevans changed the title Fix NPE in executions query --outformat when description is null [RUN-5079] Fix NPE in executions query --outformat when description is null Oct 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused guard fixes the reported crash, preserves non-null behavior, and includes a regression test.

0 open findings

What changed in this PR

Fixes #650 by handling null execution descriptions, preventing crashes in formatted execution queries and ad-hoc basic summaries.

Changes:

  • Returns an empty string when shortening a null description.
  • Adds a regression test verifying the information map preserves the execution ID and returns an empty description.
File Description
rd-api-client/​src/​test/​groovy/​org/​rundeck/​client/​api/​model/​ExecutionSpec.groovy Tests information-map generation with a null description.
rd-api-client/​src/​main/​java/​org/​rundeck/​client/​api/​model/​Execution.java Guards against null before shortening descriptions.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

This branch has not been deployed

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

Labels

to-jira (automation) add to jira

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NullPointerException with executions query --outformat when description is null

2 participants