Add null check at isEmergencyNumber().

Change-Id: I7eca1ba1ce42e02c7506a7d969e4865778bb49cc
This commit is contained in:
Peng Zhu
2009-09-24 15:34:53 -04:00
committed by Wink Saville
parent b87f24a6a8
commit 694bd8bf73

View File

@@ -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);