Raises a null-pointer exception (java.lang.NullPointerException)
(env: &mut JNIEnv<'a>)
| 99 | |
| 100 | /// Raises a null-pointer exception (java.lang.NullPointerException) |
| 101 | pub 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 | } |
no test coverage detected