summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts/common/MoreContactUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/contacts/common/MoreContactUtils.java')
-rw-r--r--src/com/android/contacts/common/MoreContactUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/contacts/common/MoreContactUtils.java b/src/com/android/contacts/common/MoreContactUtils.java
index fc258e9c..7f9d5774 100644
--- a/src/com/android/contacts/common/MoreContactUtils.java
+++ b/src/com/android/contacts/common/MoreContactUtils.java
@@ -860,7 +860,7 @@ public class MoreContactUtils {
* Get SIM card aliases name, which defined in Settings
*/
public static String getMultiSimAliasesName(Context context, int subscription) {
- if (context == null) {
+ if (context == null || subscription < 0) {
return null;
}
String name = "";