Skip to content

Commit

Permalink
Silence error
Browse files Browse the repository at this point in the history
  • Loading branch information
moezbhatti committed Jan 28, 2020
1 parent af62b06 commit d125436
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ class MessageRepositoryImpl @Inject constructor(

val addresses = pdu.to.map { it.string }.filter { it.isNotBlank() }
val parts = message.parts.mapNotNull { part ->
val bytes = tryOrNull {
val bytes = tryOrNull(false) {
context.contentResolver.openInputStream(part.getUri())?.use { inputStream -> inputStream.readBytes() }
} ?: return@mapNotNull null

Expand Down

0 comments on commit d125436

Please sign in to comment.