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

Commit 796f38cb authored by Sarah Chin's avatar Sarah Chin Committed by Jack Yu
Browse files

Fix NPE in AccessNetworksManager

Test: build
Bug: 230123585
Merged-In: I5a0aa700ef8c86e03f6dd91ebc4d09cc71b0fdcc
Change-Id: I5a0aa700ef8c86e03f6dd91ebc4d09cc71b0fdcc
parent 6855b749
Loading
Loading
Loading
Loading
+8 −5
Original line number Original line Diff line number Diff line
@@ -314,9 +314,10 @@ public class AccessNetworksManager extends Handler {
                                    .stream()
                                    .stream()
                                    .filter(x -> x.getSlotIndex() == mPhone.getPhoneId())
                                    .filter(x -> x.getSlotIndex() == mPhone.getPhoneId())
                                    .collect(Collectors.toList());
                                    .collect(Collectors.toList());

                    if (mIQualifiedNetworksService != null) {
                        mIQualifiedNetworksService.reportThrottleStatusChanged(mPhone.getPhoneId(),
                        mIQualifiedNetworksService.reportThrottleStatusChanged(mPhone.getPhoneId(),
                                throttleStatusesBySlot);
                                throttleStatusesBySlot);
                    }
                } catch (Exception ex) {
                } catch (Exception ex) {
                    loge("onThrottleStatusChanged", ex);
                    loge("onThrottleStatusChanged", ex);
                }
                }
@@ -453,8 +454,10 @@ public class AccessNetworksManager extends Handler {
                        public void onThrottleStatusChanged(List<ThrottleStatus> throttleStatuses) {
                        public void onThrottleStatusChanged(List<ThrottleStatus> throttleStatuses) {
                            try {
                            try {
                                logl("onThrottleStatusChanged: " + throttleStatuses);
                                logl("onThrottleStatusChanged: " + throttleStatuses);
                                if (mIQualifiedNetworksService != null) {
                                    mIQualifiedNetworksService.reportThrottleStatusChanged(
                                    mIQualifiedNetworksService.reportThrottleStatusChanged(
                                            mPhone.getPhoneId(), throttleStatuses);
                                            mPhone.getPhoneId(), throttleStatuses);
                                }
                            } catch (Exception ex) {
                            } catch (Exception ex) {
                                loge("onThrottleStatusChanged: ", ex);
                                loge("onThrottleStatusChanged: ", ex);
                            }
                            }