What does NTSTATUS 0xC0030009 (RPC_NT_NULL_REF_POINTER) mean?

 
Previous Next
RPC_NT_SS_CANNOT_GET_CALL_HANDLE RPC_NT_ENUM_VALUE_OUT_OF_RANGE

RPC_NT_NULL_REF_POINTER

NULL reference pointer passed to an RPC stub

RPC_NT_NULL_REF_POINTER belongs to stub parameter validation. In MIDL, pointer attributes describe whether a pointer may be NULL and whether it identifies data that must be marshaled for the remote procedure.

This status means the client-side or server-side stub saw a NULL reference pointer where the IDL contract requires an actual object. It is not a generic access violation; it is a contract violation detected at the RPC marshaling boundary.

What to check

  • Check the IDL pointer attribute for the parameter, especially [ref] versus nullable pointer forms.
  • Validate caller-side optional fields before invoking the generated stub.
  • If this appears only after an IDL change, rebuild both client and server stubs from the same IDL and ACF.

References


Looking for a different code? Search another status or error code.