Skip to content

Fix NPE When Incrementing Fields - #280

Open
rcosta358 wants to merge 1 commit into
mainfrom
fix-field-increment
Open

Fix NPE When Incrementing Fields#280
rcosta358 wants to merge 1 commit into
mainfrom
fix-field-increment

Conversation

@rcosta358

Copy link
Copy Markdown
Collaborator

Description

Fixes a null pointer exception when applying unary update operators such as field++ to class fields.
This fix also applies to other unary field updates such as field--, ++field, and --field.

Example

public class Test {
    private int field;

    public void increment() {
        field++; // 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 6, 2026
@rcosta358 rcosta358 added the bug Something isn't working label Aug 6, 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