diff --git a/core/jni/android_util_Binder.cpp b/core/jni/android_util_Binder.cpp index c139cd78b4c01..ae109c6566cbd 100644 --- a/core/jni/android_util_Binder.cpp +++ b/core/jni/android_util_Binder.cpp @@ -711,6 +711,9 @@ void signalExceptionForError(JNIEnv* env, jobject obj, status_t err, jniThrowException(env, "java/lang/RuntimeException", "Not allowed to write file descriptors here"); break; + case UNEXPECTED_NULL: + jniThrowNullPointerException(env, NULL); + break; case -EBADF: jniThrowException(env, "java/lang/RuntimeException", "Bad file descriptor");