Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions telecomm/java/android/telecom/CallerInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -697,12 +697,13 @@ public static String getGeoDescription(Context context, String number) {
+ Log.pii(number) + "'");
}

if (pn != null) {
if (pn == null || locale == null) {
Log.w(TAG, "pn and/or locale was null in getGeoDescription");
return null;
} else {
String description = geocoder.getDescriptionForNumber(pn, locale);
if (VDBG) Log.v(TAG, "- got description: '" + description + "'");
return description;
} else {
return null;
}
}

Expand Down