Merge "Don't crash if the MediaCodecList is null." am: f80c56df73

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556749

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaf695842ec6461e65861f5d541ea6ff237a1bc8a
This commit is contained in:
Treehugger Robot
2021-03-05 17:18:27 +00:00
committed by Automerger Merge Worker

View File

@@ -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));