Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa authored and Pururun committed Nov 21, 2023
1 parent 9900634 commit 850b405
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class CaptureScreenshotOnFailedTestRule(private val testTag: String) : TestWatch
if (uri != null) {
contentResolver.openOutputStream(uri).use {
try {
this.compress(Bitmap.CompressFormat.JPEG, 50, it)
this.compress(Bitmap.CompressFormat.JPEG, 50, it!!)
} catch (e: IOException) {
Log.e(testTag, "Unable to store screenshot: ${e.message}")
}
Expand Down

0 comments on commit 850b405

Please sign in to comment.