Skip to content

Codeblock fails on null arguments - #1842

Merged
mhalbritter merged 1 commit into
spring-io:mainfrom
YangSiJun528:codeblock-null-string
Sep 24, 2026
Merged

mhalbritter merged 1 commit into
spring-io:mainfrom
YangSiJun528:codeblock-null-string

Conversation

@YangSiJun528

Copy link
Copy Markdown
Contributor

Fix a NPE when passing null to $S by using a Collections.unmodifiableList() that permits null elements.

Update nullability annotations and add tests for null arguments with $S and $L.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 15, 2026
@mhalbritter mhalbritter changed the title Fix null argument handling in CodeBlock Codeblock fails on null arguments Sep 24, 2026
@mhalbritter mhalbritter self-assigned this Sep 24, 2026
@mhalbritter mhalbritter added type: bug and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 24, 2026
See spring-iogh-1842

Signed-off-by: sijun-yang <yangsijun5528@gmail.com>
@mhalbritter
mhalbritter merged commit 72d6763 into spring-io:main Sep 24, 2026
4 checks passed
@mhalbritter

Copy link
Copy Markdown
Contributor

Thanks @YangSiJun528 !

@mhalbritter mhalbritter added this to the 0.25.0 milestone Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants