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

Commit 4443722c authored by Ricardo Cerqueira's avatar Ricardo Cerqueira Committed by Gerrit Code Review
Browse files

Merge "Telephony: fix null pointer exception" into cm-11.0

parents 2e34e488 3cbbf0e8
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -1349,21 +1349,25 @@ public class UsimPhoneBookManager extends Handler implements IccConstants {

    public int getEmptyEmailNum_Pbrindex(int pbrindex) {
        int count = 0;
        if (mEmailFlags.get(pbrindex) != null) {
          for (int i = 0; i < mEmailFlags.get(pbrindex).size(); i++) {
              if (0 == mEmailFlags.get(pbrindex).get(i))
                  count++;
          }
        }
        return count;
    }

    public int getEmptyAnrNum_Pbrindex(int pbrindex) {
        int count = 0;
        if (mAnrFlags.get(pbrindex) != null) {
          for (int i = 0; i < mAnrFlags.get(pbrindex).size(); i++) {
              if (0 == mAnrFlags.get(pbrindex).get(i))
                  count++;
          }
          log("getEmptyAnrNum_Pbrindex pbrIndex is: " + pbrindex + " size is: "
                + mEmailFlags.get(pbrindex).size() + ", count is " + count);
                  + mAnrFlags.get(pbrindex).size() + ", count is " + count);
        }
        return count;
    }
}