Skip to content

A nullPointerException about "updateCurrentImagePoints". #930

@Xiaotaner666

Description

@Xiaotaner666

hi, i found a crush in TransformImageView, it's a nullPointerException reported by "updateCurrentImagePoints".
here are the details.
hope you can fix it.

#main(1)
TransformImageView.java:400
Caused by:com.yalantis.ucrop.view.TransformImageView.updateCurrentImagePoints
Attempt to get length of null array
Fatal Exception:java.lang.NullPointerException
android.graphics.Matrix.mapPoints(Matrix.java:668)
com.yalantis.ucrop.view.TransformImageView.updateCurrentImagePoints(TransformImageView.java:400)
com.yalantis.ucrop.view.TransformImageView.setImageMatrix(TransformImageView.java:264)
com.yalantis.ucrop.view.TransformImageView.postTranslate(TransformImageView.java:285)
com.yalantis.ucrop.view.GestureCropImageView$GestureListener.onScroll(GestureCropImageView.java:146)
android.view.GestureDetector.onTouchEvent(GestureDetector.java:734)
com.yalantis.ucrop.view.GestureCropImageView.onTouchEvent(GestureCropImageView.java:89)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions