Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IllegalArgumentException caused by broken Kotlin contract #83

Merged
merged 2 commits into from
Jan 31, 2019

Conversation

sylwester-zielinski
Copy link
Contributor

Sometimes lib crashes because values passed to FlingScrollListener break Kotlin contract.

java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter e1
at com.otaliastudios.zoom.ZoomEngine$FlingScrollListener.onScroll(ZoomEngine.kt)
at android.view.GestureDetector.onTouchEvent(GestureDetector.java:579)
at com.otaliastudios.zoom.ZoomEngine.processTouchEvent(ZoomEngine.kt:831)
at com.otaliastudios.zoom.ZoomEngine.onTouchEvent(ZoomEngine.kt:818)
at com.otaliastudios.zoom.ZoomImageView.onTouchEvent(ZoomImageView.kt:93)

@natario1
Copy link
Owner

Thank you for catching this, seems important.

@natario1 natario1 merged commit a2f9fb1 into natario1:master Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants