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

Commit 3f7854f9 authored by Malcolm Chen's avatar Malcolm Chen Committed by Xiangyu/Malcolm Chen
Browse files

Add null check on UiccProfile before dumping.

Bug: 75282275
Test: build
Change-Id: Ib58d27d1d19d647f7a2df4a4931b211da0c3f5b2
Merged-In: Ib58d27d1d19d647f7a2df4a4931b211da0c3f5b2
(cherry picked from commit a7d66eea)
parent 01d3a91a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -454,7 +454,10 @@ public class PhoneFactory {
            pw.println("++++++++++++++++++++++++++++++++");

            try {
                ((UiccProfile) phone.getIccCard()).dump(fd, pw, args);
                UiccProfile uiccProfile = (UiccProfile) phone.getIccCard();
                if (uiccProfile != null) {
                    uiccProfile.dump(fd, pw, args);
                }
            } catch (Exception e) {
                e.printStackTrace();
            }