Merge "Add missing NULL check for android_os_Parcel_writeInt" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
45ab734a7a
@@ -230,9 +230,11 @@ static void android_os_Parcel_writeBlob(JNIEnv* env, jclass clazz, jlong nativeP
|
||||
|
||||
static void android_os_Parcel_writeInt(JNIEnv* env, jclass clazz, jlong nativePtr, jint val) {
|
||||
Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr);
|
||||
const status_t err = parcel->writeInt32(val);
|
||||
if (err != NO_ERROR) {
|
||||
signalExceptionForError(env, clazz, err);
|
||||
if (parcel != NULL) {
|
||||
const status_t err = parcel->writeInt32(val);
|
||||
if (err != NO_ERROR) {
|
||||
signalExceptionForError(env, clazz, err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user