Skip to content

Fix NPE When Concatenating Strings - #283

Open
rcosta358 wants to merge 1 commit into
mainfrom
fix-string-concat
Open

Fix NPE When Concatenating Strings#283
rcosta358 wants to merge 1 commit into
mainfrom
fix-string-concat

Conversation

@rcosta358

Copy link
Copy Markdown
Collaborator

Description

This PR fixes a crash when concatenating an unrefined function invocation with a string.
The previous fix added in #89 was not enough because it ran only after processing both operands, allowing a null RefinedFunction to cause a NullPointerException.

Example

String str = object.toString() + "hello"; // crash

Related Issue

None.

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Code refactoring

Checklist

  • Added/updated tests under liquidjava-example/src/main/java/testSuite/ (Correct* / Error*)
  • mvn test passes locally
  • Updated docs/README if behavior or API changed

@rcosta358 rcosta358 self-assigned this Aug 8, 2026
@rcosta358 rcosta358 added the bug Something isn't working label Aug 8, 2026
@rcosta358 rcosta358 changed the title Fix String Concatenation Fix NPE When Concatenating Strings Aug 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant