summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/contacts/common/util/PhoneNumberHelper.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/contacts/common/util/PhoneNumberHelper.java b/src/com/android/contacts/common/util/PhoneNumberHelper.java
index ea62adad..2cbfce74 100644
--- a/src/com/android/contacts/common/util/PhoneNumberHelper.java
+++ b/src/com/android/contacts/common/util/PhoneNumberHelper.java
@@ -56,6 +56,10 @@ public class PhoneNumberHelper {
* is made public.
*/
public static boolean isLocalEmergencyNumber(String number, Context context) {
+ if (number == null) {
+ return false;
+ }
+
final Locale locale = context.getResources().getConfiguration().locale;
String countryIso = TelephonyManagerUtils.getCurrentCountryIso(context, locale);