Fix null string returned in mms address query

This commit is contained in:
Moez Bhatti
2018-04-07 14:12:47 -04:00
parent 3a49e23b38
commit f091596dc7
@@ -139,7 +139,7 @@ class CursorToMessageImpl @Inject constructor(
val cursor = context.contentResolver.query(uri, projection, selection, null, null)
cursor?.use {
if (cursor.moveToFirst()) {
return cursor.getString(0)
return cursor.getString(0) ?: ""
}
}