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

Commit 17da5a69 authored by San Mehat's avatar San Mehat
Browse files

StorageManager: Check for a null MountService



Signed-off-by: default avatarSan Mehat <san@google.com>
parent 53bd2522
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -254,6 +254,10 @@ public class StorageManager
     */
    public StorageManager(Looper tgtLooper) throws RemoteException {
        mMountService = IMountService.Stub.asInterface(ServiceManager.getService("mount"));
        if (mMountService == null) {
            Log.e(TAG, "Unable to connect to mount service! - is it running yet?");
            return;
        }
        mTgtLooper = tgtLooper;
        mBinderListener = new MountServiceBinderListener();
        mMountService.registerListener(mBinderListener);