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

Commit 53d1022e authored by Paul Lawrence's avatar Paul Lawrence Committed by Android Git Automerger
Browse files

am a15d6402: Merge "Fix crash caused by toHex returning exception"

* commit 'a15d6402':
  Fix crash caused by toHex returning exception
parents d8aa4660 a15d6402
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2371,9 +2371,16 @@ class MountService extends IMountService.Stub
        final NativeDaemonEvent event;
        try {
            event = mConnector.execute("cryptfs", "getpw");
            if ("-1".equals(event.getMessage())) {
                // -1 equals no password
                return null;
            }
            return fromHex(event.getMessage());
        } catch (NativeDaemonConnectorException e) {
            throw e.rethrowAsParcelableException();
        } catch (IllegalArgumentException e) {
            Slog.e(TAG, "Invalid response to getPassword");
            return null;
        }
    }