summaryrefslogtreecommitdiffstats
path: root/services/core
diff options
context:
space:
mode:
authorRoboErik <epastern@google.com>2014-10-15 23:39:29 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-15 23:39:29 +0000
commit0dfd86e00656573cdd3e28742e93319c96f6ce15 (patch)
tree2afdd89f65bdbcf80aae689160a7d303e7ff98e5 /services/core
parent522fe28e3d8da3d8c094d668071368fdc738e74b (diff)
parentc7be69f1d63bcc8411875ff53e5561f2f4692072 (diff)
downloadframeworks_base-0dfd86e00656573cdd3e28742e93319c96f6ce15.zip
frameworks_base-0dfd86e00656573cdd3e28742e93319c96f6ce15.tar.gz
frameworks_base-0dfd86e00656573cdd3e28742e93319c96f6ce15.tar.bz2
am c7be69f1: Merge "Don\'t call size on a null metadata" into lmp-dev
* commit 'c7be69f1d63bcc8411875ff53e5561f2f4692072': Don't call size on a null metadata
Diffstat (limited to 'services/core')
-rw-r--r--services/core/java/com/android/server/media/MediaSessionRecord.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/media/MediaSessionRecord.java b/services/core/java/com/android/server/media/MediaSessionRecord.java
index ebce3ad..921b68b 100644
--- a/services/core/java/com/android/server/media/MediaSessionRecord.java
+++ b/services/core/java/com/android/server/media/MediaSessionRecord.java
@@ -731,7 +731,9 @@ public class MediaSessionRecord implements IBinder.DeathRecipient {
// This is to guarantee that the underlying bundle is unparceled
// before we set it to prevent concurrent reads from throwing an
// exception
- temp.size();
+ if (temp != null) {
+ temp.size();
+ }
mMetadata = temp;
}
mHandler.post(MessageHandler.MSG_UPDATE_METADATA);