Commit 3289e3e9 by olly Committed by Oliver Woodman

Be robust against provideProvisionResponse throwing unchecked exceptions

Other catch blocks in this class catch everything. This one should
too.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=173118891
parent 43d70bdd
......@@ -17,7 +17,6 @@ package com.google.android.exoplayer2.drm;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.media.DeniedByServerException;
import android.media.NotProvisionedException;
import android.os.Handler;
import android.os.HandlerThread;
......@@ -281,7 +280,7 @@ import java.util.UUID;
try {
mediaDrm.provideProvisionResponse((byte[]) response);
} catch (DeniedByServerException e) {
} catch (Exception e) {
provisioningManager.onProvisionError(e);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment