Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd7e0440 authored by Dan Albert's avatar Dan Albert Committed by Gerrit Code Review
Browse files

Merge "Check for NULL before calling asBinder()."

parents 14fc930d 12604519
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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();
}