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

Commit 5f7b3be9 authored by markchien's avatar markchien
Browse files

Fix NPE in tethering startup

mUserManager should be ready before #makeTethering because mTethering may
call isTetheringSupported which need to reference mUserManager

Bug: 148642028
Test: build
Change-Id: I100b5d6cc8f49640c33fa930b819033de5d6492c
parent 497afcff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,8 +77,8 @@ public class TetheringService extends Service {
        mLog.mark("onCreate");
        mDeps = getTetheringDependencies();
        mContext = mDeps.getContext();
        mTethering = makeTethering(mDeps);
        mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE);
        mTethering = makeTethering(mDeps);
    }

    /**