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

Commit 56024f26 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 26991 into eclair

* changes:
  Add null check at isEmergencyNumber().
parents 1a42cfac 694bd8bf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1230,6 +1230,9 @@ public class PhoneNumberUtils
     * listed in the ril / sim, then return true, otherwise false.
     */
    public static boolean isEmergencyNumber(String number) {
        // If the number passed in is null, just return false:
        if (number == null) return false;

        // Strip the separators from the number before comparing it
        // to the list.
        number = extractNetworkPortion(number);