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

Commit 0fd92f71 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add null check on UiccProfile before dumping." into pi-dev

parents 569d0d25 3f7854f9
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();
            }