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

Added null-check per method in onStateChangedListener #314

Merged
merged 1 commit into from
Oct 19, 2017
Merged

Added null-check per method in onStateChangedListener #314

merged 1 commit into from
Oct 19, 2017

Conversation

berendn
Copy link
Contributor

@berendn berendn commented Apr 21, 2017

I want to be able to remove the OnStateChangedListener in onScaleChanged. This caused a NPE in sendStateChanged() when onCenterChanged() was called.

I want to be able to remove the OnStateChangedListener in onScaleChanged. This caused a NPE in `sendStateChanged()` when `onCenterChanged()` was called.
@berendn
Copy link
Contributor Author

berendn commented Apr 21, 2017

I'm using subsamplingScaleImageView.setOnStateChangedListener(new SubsamplingScaleImageView.DefaultOnStateChangedListener()); as a workaround.

@davemorrissey davemorrissey merged commit 64038a1 into davemorrissey:master Oct 19, 2017
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.

None yet

2 participants