Skip to content

Commit

Permalink
fix: NPE in PhotoReceiverHandler.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
VaiTon committed Jul 27, 2021
1 parent 185b559 commit 1783857
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -81,8 +81,8 @@ class PhotoReceiverHandler(
*/
private fun onCropResult(requestCode: Int, resultCode: Int, data: Intent?): Boolean {
if (requestCode != CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) return false
val result = CropImage.getActivityResult(data) ?: return true

val result = CropImage.getActivityResult(data)!!
when (resultCode) {
RESULT_OK -> {
if (result.uriContent != null) {
Expand Down

0 comments on commit 1783857

Please sign in to comment.