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

Commit 734822f6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "NPE telephonyManager check" into main

parents 907a67b4 b368f2f0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -326,6 +326,10 @@ public class KeyguardSimPinViewController
            if (mIsInTestMode) return;
            Log.v(TAG, "call supplyIccLockPin(subid=" + mSubId + ")");
            TelephonyManager telephonyManager = mTelephonyManager.createForSubscriptionId(mSubId);
            if (telephonyManager == null) {
                Log.w(LOG_TAG, "Null telephonyManager, cannot validate SimPin");
                return;
            }
            final PinResult result = telephonyManager.supplyIccLockPin(mPin);
            Log.v(TAG, "supplyIccLockPin returned: " + result.toString());
            mView.post(() -> onSimCheckResponse(result));