Skip to content

Commit

Permalink
Merge pull request #231 from farfromrefug/master
Browse files Browse the repository at this point in the history
fix: NPE crash with some datas
  • Loading branch information
tmo1 authored Feb 5, 2025
2 parents 96e3229 + 3fcd13a commit 4cfe0cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/github/tmo1/sms_ie/ImportExport.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ fun checkWriteContactsPermission(appContext: Context): Boolean {
}

fun lookupDisplayName(
appContext: Context, displayNames: MutableMap<String, String?>, address: String
appContext: Context, displayNames: MutableMap<String, String?>, address: String?
): String? {
// look up display name by phone number
if (address == "") return null
if (address == null || address == "") return null
if (displayNames[address] != null) return displayNames[address]
val displayName: String?
val uri = Uri.withAppendedPath(
Expand Down

0 comments on commit 4cfe0cf

Please sign in to comment.