Skip to content

Fix NPE When Invoking Methods on Object Fields - #279

Open
rcosta358 wants to merge 1 commit into
mainfrom
fix-npe-3
Open

Fix NPE When Invoking Methods on Object Fields#279
rcosta358 wants to merge 1 commit into
mainfrom
fix-npe-3

Conversation

@rcosta358

Copy link
Copy Markdown
Collaborator

Description

This PR fixes a null pointer exception when invoking a method through an object field.

Example

public class Test {

    Obj obj = new Obj();

    public void test() {
        obj.foo(); // crash
    }
}

class Obj {
    void foo() {}
}

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