{"record":{"id":"a1a8ad00aa156f62","repo":"oracle/graal","slug":"receiver-is-null","errorCode":null,"errorMessage":"Receiver is null","messagePattern":"Receiver is null","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalResolvedJavaField.java","lineNumber":129,"sourceCode":"    }\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 {\n                throw new IllegalArgumentException(\"Expected an espresso object constant, got \" + value.getClass().getName());\n            }\n        } else {","sourceCodeStart":111,"sourceCodeEnd":147,"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#L111-L147","documentation":"Error \"Receiver is null\" thrown in oracle/graal.","triggerScenarios":"Thrown at espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalResolvedJavaField.java:129 when the library encounters an invalid state.","commonSituations":"Occurs when a caller violates the contract guarded by this check: Receiver is null","solutions":["Fix the condition reported by the error: Receiver is null","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 is null","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-15T22:17:37.221Z"}