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

Commit 0be134af authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Fix mediaserver crash due to NULL errorDetailMessage

bug: 33905340
Change-Id: Icad86ad066a053f4aa9ca708a3c8690a68ec1856
parent 886deb50
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -149,7 +149,10 @@ struct BpCrypto : public BpInterface<ICrypto> {
        ssize_t result = reply.readInt32();

        if (isCryptoError(result)) {
            errorDetailMsg->setTo(reply.readCString());
            AString msg = reply.readCString();
            if (errorDetailMsg) {
                *errorDetailMsg = msg;
            }
        }

        return result;