Merge "Don't crash if the MediaCodecList is null." am: f80c56df73 am: ac569866d9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556749 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I9ef5f798a545f21752b56d6a3134f3179d323734
This commit is contained in:
@@ -105,6 +105,7 @@ static const JavaMediaCodecListWrapper *getCodecList(JNIEnv *env) {
|
||||
// This should never happen unless something is really wrong
|
||||
jniThrowException(
|
||||
env, "java/lang/RuntimeException", "cannot get MediaCodecList");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
sListWrapper.reset(new JavaMediaCodecListWrapper(mcl));
|
||||
|
||||
Reference in New Issue
Block a user