diff options
author | RoboErik <epastern@google.com> | 2014-10-16 05:51:37 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-16 05:51:37 +0000 |
commit | 56d8876f4b9a1a43e4eed0d8b1afff26331cf095 (patch) | |
tree | 687065daf70c029b6a4920577cfbbbbd6c8a0195 /services | |
parent | 79469425a170b9f8af20153078fb20d6400beefa (diff) | |
parent | 0dfd86e00656573cdd3e28742e93319c96f6ce15 (diff) | |
download | frameworks_base-56d8876f4b9a1a43e4eed0d8b1afff26331cf095.zip frameworks_base-56d8876f4b9a1a43e4eed0d8b1afff26331cf095.tar.gz frameworks_base-56d8876f4b9a1a43e4eed0d8b1afff26331cf095.tar.bz2 |
am 0dfd86e0: am c7be69f1: Merge "Don\'t call size on a null metadata" into lmp-dev
* commit '0dfd86e00656573cdd3e28742e93319c96f6ce15':
Don't call size on a null metadata
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/media/MediaSessionRecord.java | 4 |
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); |