am c7be69f1: Merge "Don\'t call size on a null metadata" into lmp-dev

* commit 'c7be69f1d63bcc8411875ff53e5561f2f4692072':
  Don't call size on a null metadata
This commit is contained in:
RoboErik
2014-10-15 23:39:29 +00:00
committed by Android Git Automerger

View File

@@ -731,7 +731,9 @@ public class MediaSessionRecord implements IBinder.DeathRecipient {
// This is to guarantee that the underlying bundle is unparceled // This is to guarantee that the underlying bundle is unparceled
// before we set it to prevent concurrent reads from throwing an // before we set it to prevent concurrent reads from throwing an
// exception // exception
temp.size(); if (temp != null) {
temp.size();
}
mMetadata = temp; mMetadata = temp;
} }
mHandler.post(MessageHandler.MSG_UPDATE_METADATA); mHandler.post(MessageHandler.MSG_UPDATE_METADATA);