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

Commit a7d66eea authored by Malcolm Chen's avatar Malcolm Chen
Browse files

Add null check on UiccProfile before dumping.

Bug: 75282275
Test: build
Change-Id: Ib58d27d1d19d647f7a2df4a4931b211da0c3f5b2
parent 00dbd493
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();
            }