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

Commit f17dec63 authored by Wink Saville's avatar Wink Saville
Browse files

Fix an NPE in SubscriptionController.dump

Bug: 17945275
Change-Id: I076112ede5fd224284c23078b321fd282d0dffe0
parent 7b960c8a
Loading
Loading
Loading
Loading
+16 −4
Original line number Diff line number Diff line
@@ -1388,14 +1388,26 @@ public class SubscriptionController extends ISub.Stub {
        pw.flush();
        pw.println("++++++++++++++++++++++++++++++++");

        for (SubInfoRecord entry : getActiveSubInfoList()) {
            pw.println(" ActiveSubInfoList:" + entry.toString());
        List<SubInfoRecord> sirl = getActiveSubInfoList();
        if (sirl != null) {
            pw.println(" ActiveSubInfoList:");
            for (SubInfoRecord entry : sirl) {
                pw.println("  " + entry.toString());
            }
        } else {
            pw.println(" ActiveSubInfoList: is null");
        }
        pw.flush();
        pw.println("++++++++++++++++++++++++++++++++");

        for (SubInfoRecord entry : getAllSubInfoList()) {
            pw.println(" AllSubInfoList:" + entry.toString());
        sirl = getAllSubInfoList();
        if (sirl != null) {
            pw.println(" AllSubInfoList:");
            for (SubInfoRecord entry : sirl) {
                pw.println("  " + entry.toString());
            }
        } else {
            pw.println(" AllSubInfoList: is null");
        }
        pw.flush();
        pw.println("++++++++++++++++++++++++++++++++");