uCrop icon indicating copy to clipboard operation
uCrop copied to clipboard

NullPointerException

Open cwl-git opened this issue 2 years ago • 2 comments

io.reactivex.exceptions.OnErrorNotImplementedException:The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | java.lang.NullPointerException: Attempt to get length of null array

io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:704)

Caused by: java.lang.NullPointerException:Attempt to get length of null array android.graphics.Matrix.mapPoints(Matrix.java:666) com.yalantis.ucrop.view.TransformImageView.updateCurrentImagePoints(TransformImageView.java:336) com.yalantis.ucrop.view.TransformImageView.setImageMatrix(TransformImageView.java:200) com.yalantis.ucrop.view.TransformImageView.postRotate(TransformImageView.java:252) com.yalantis.ucrop.view.CropImageView.postRotate(CropImageView.java:264)

cwl-git avatar Jul 20 '21 09:07 cwl-git

Please provide steps to reproduce the issue and the following details:

Do you want to request a feature or report a bug?

What is the current behavior?

What is the expected behavior?

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

Please attach any image files, URL and stack trace that can be used to reproduce the bug.

Which versions of uCrop, and which Android API versions are affected by this issue? Did this work in previous versions of uCrop?

dmitriy1morozov avatar Jan 21 '22 07:01 dmitriy1morozov

https://github.com/Yalantis/uCrop/issues/255

One Solution we did was: 1.add an empty/transparent clickable view over the Ucrop View 2.Make it invisible (ie allow clicks) only on onLoadComplete using setTransformImageListener

wjc3594 avatar Jun 09 '22 03:06 wjc3594