{"record":{"id":"b5efe3d7ae8cc391","repo":"oracle/graal","slug":"receiver","errorCode":null,"errorMessage":"receiver","messagePattern":"receiver","errorType":"validation","errorClass":"NullPointerException","httpStatus":null,"severity":"error","filePath":"espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalResolvedJavaField.java","lineNumber":126,"sourceCode":"\n    public Value readValue(Value receiver) {\n        return vmFieldMirror.invokeMember(\"read\", receiver);\n    }\n\n    void writeValue(JavaConstant receiver, JavaConstant value) {\n        if (value == null) {\n            throw new NullPointerException(\"value\");\n        }\n\n        final Value receiverValue;\n        if (isStatic()) {\n            if (receiver != null) {\n                throw new IllegalArgumentException(\"Static field write requires null receiver\");\n            }\n            receiverValue = null;\n        } else {\n            if (receiver == null) {\n                throw new NullPointerException(\"receiver\");\n            }\n            if (receiver.isNull()) {\n                throw new IllegalArgumentException(\"Receiver is null\");\n            }\n            if (!(receiver instanceof EspressoExternalObjectConstant espressoReceiver)) {\n                throw new IllegalArgumentException(\"Expected an espresso object receiver, got \" + receiver.getClass().getName());\n            }\n            receiverValue = espressoReceiver.getValue();\n        }\n\n        JavaKind kind = getJavaKind();\n        final Object boxed;\n        if (kind == JavaKind.Object) {\n            if (value.isNull()) {\n                boxed = null;\n            } else if (value instanceof EspressoExternalObjectConstant objConst) {\n                boxed = objConst.getValue();\n            } else {","sourceCodeStart":108,"sourceCodeEnd":144,"githubUrl":"https://github.com/oracle/graal/blob/a66e9ccd1d7bf2552883939aa0788dfd0e294aab/espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalResolvedJavaField.java#L108-L144","documentation":"Error \"receiver\" thrown in oracle/graal.","triggerScenarios":"Thrown at espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalResolvedJavaField.java:126 when the library encounters an invalid state.","commonSituations":"Occurs when a caller violates the contract guarded by this check: receiver","solutions":["Fix the condition reported by the error: receiver","Check the throwing call site and ensure its documented preconditions (argument values, types, environment, or configuration) are satisfied before the call."],"exampleFix":"Validate inputs and environment so that the failing condition does not occur: receiver","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a66e9ccd1d7bf2552883939aa0788dfd0e294aab","analyzedAt":"2026-08-14T13:58:47.161Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}