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

Commit 6474bdf5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Fix null pointer exception in KeyguardUpdateMonitor."

parents 13822086 b50cdc4a
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -465,8 +465,13 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
            } else if (Intent.ACTION_LOCALE_CHANGED.equals(action)) {
                Log.d(TAG, "Received CONFIGURATION_CHANGED intent");
                for (int i = 0; i < mNumPhones; i++) {
                    long subId = SubscriptionManager.getSubId(i)[0];
                    mHandler.sendMessage(mHandler.obtainMessage(MSG_CARRIER_INFO_UPDATE, subId));
                    long[] subIds = SubscriptionManager.getSubId(i);
                    if (subIds != null && subIds.length > 0) {
                        mHandler.sendMessage(mHandler.obtainMessage(MSG_CARRIER_INFO_UPDATE,
                                subIds[0]));
                    } else {
                        Log.d(TAG, "No valid subs");
                    }
                }
            }