summaryrefslogtreecommitdiffstats
path: root/drm/java
diff options
context:
space:
mode:
authorGloria Wang <gwang@google.com>2011-03-02 17:06:16 -0800
committerGloria Wang <gwang@google.com>2011-03-02 17:06:16 -0800
commit4ef690a38b1dfdff3ae34e260435edcec37e520f (patch)
treeb9eba3a34c80f85fb3c709b14df8e5687db1c111 /drm/java
parent0528bc77948e49bd75cfd4082fb8fef3a7238626 (diff)
downloadframeworks_base-4ef690a38b1dfdff3ae34e260435edcec37e520f.zip
frameworks_base-4ef690a38b1dfdff3ae34e260435edcec37e520f.tar.gz
frameworks_base-4ef690a38b1dfdff3ae34e260435edcec37e520f.tar.bz2
Do not call processDrmInfo if acquireDrmInfo returns null
Change-Id: Ib762d429daaa8cb2310951cc54f26d75aacaf673
Diffstat (limited to 'drm/java')
-rw-r--r--drm/java/android/drm/DrmManagerClient.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/drm/java/android/drm/DrmManagerClient.java b/drm/java/android/drm/DrmManagerClient.java
index 6caf678..c541456 100644
--- a/drm/java/android/drm/DrmManagerClient.java
+++ b/drm/java/android/drm/DrmManagerClient.java
@@ -479,6 +479,9 @@ public class DrmManagerClient {
*/
public int acquireRights(DrmInfoRequest drmInfoRequest) {
DrmInfo drmInfo = acquireDrmInfo(drmInfoRequest);
+ if (null == drmInfo) {
+ return ERROR_UNKNOWN;
+ }
return processDrmInfo(drmInfo);
}