MCPcopy Index your code
hub / github.com/cedar-policy/cedar-java / raise_npe

Function raise_npe

CedarJavaFFI/src/utils.rs:101–104  ·  view source on GitHub ↗

Raises a null-pointer exception (java.lang.NullPointerException)

(env: &mut JNIEnv<'a>)

Source from the content-addressed store, hash-verified

99
100/// Raises a null-pointer exception (java.lang.NullPointerException)
101pub fn raise_npe<'a>(env: &mut JNIEnv<'a>) -> Result<JValueOwned<'a>> {
102 env.throw_new("java/lang/NullPointerException", "Null Pointer Exception")?;
103 Ok(JValueGen::Object(JObject::null()))
104}

Callers 15

assert_is_classFunction · 0.85
parse_policy_internalFunction · 0.85
parse_policies_internalFunction · 0.85
to_json_internalFunction · 0.85

Calls 1

ObjectInterface · 0.85

Tested by

no test coverage detected