forked from upstream-mirrors/quik
Fix null string returned in mms address query
This commit is contained in:
@@ -139,7 +139,7 @@ class CursorToMessageImpl @Inject constructor(
|
|||||||
val cursor = context.contentResolver.query(uri, projection, selection, null, null)
|
val cursor = context.contentResolver.query(uri, projection, selection, null, null)
|
||||||
cursor?.use {
|
cursor?.use {
|
||||||
if (cursor.moveToFirst()) {
|
if (cursor.moveToFirst()) {
|
||||||
return cursor.getString(0)
|
return cursor.getString(0) ?: ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user