Skip to content
Commit b3e68491 authored by Peter Collingbourne's avatar Peter Collingbourne
Browse files

Don't crash if the MediaCodecList is null.

We need to avoid calling the JavaMediaCodecListWrapper constructor if
the MediaCodecList is null because the constructor assumes its argument
to be non-null. Since throwing a JNI exception does not implicitly
return we need to return null to avoid entering the constructor.

Change-Id: If473d2f6f219719ff81c29307637f28b7e31af77
parent c7906266
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment