diff options
author | Dan Albert <danalbert@google.com> | 2014-09-22 20:10:01 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-09-22 20:10:01 +0000 |
commit | 19ae665ba4139b7045897b3018f24b42f6fa2db7 (patch) | |
tree | 87ca2a40d4a3fec80715a68ec4c67a7358fc9faf /drm | |
parent | 0f14717a5b89d2b020682dba1804a13b225beae0 (diff) | |
parent | 9707ffaf0b574b7929d62b2fe683595e95ef7774 (diff) | |
download | frameworks_av-19ae665ba4139b7045897b3018f24b42f6fa2db7.zip frameworks_av-19ae665ba4139b7045897b3018f24b42f6fa2db7.tar.gz frameworks_av-19ae665ba4139b7045897b3018f24b42f6fa2db7.tar.bz2 |
am 9707ffaf: am fd7e0440: Merge "Check for NULL before calling asBinder()."
* commit '9707ffaf0b574b7929d62b2fe683595e95ef7774':
Check for NULL before calling asBinder().
Diffstat (limited to 'drm')
-rw-r--r-- | drm/common/IDrmManagerService.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drm/common/IDrmManagerService.cpp b/drm/common/IDrmManagerService.cpp index db41e0b..36cb612 100644 --- a/drm/common/IDrmManagerService.cpp +++ b/drm/common/IDrmManagerService.cpp @@ -148,7 +148,8 @@ status_t BpDrmManagerService::setDrmServiceListener( data.writeInterfaceToken(IDrmManagerService::getInterfaceDescriptor()); data.writeInt32(uniqueId); - data.writeStrongBinder(drmServiceListener->asBinder()); + data.writeStrongBinder( + drmServiceListener != NULL ? drmServiceListener->asBinder() : NULL); remote()->transact(SET_DRM_SERVICE_LISTENER, data, &reply); return reply.readInt32(); } |