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

NullPointException Attempt to read from field "Anim.listener" on a null object reference #569

Open
PeacefulGemini opened this issue Sep 21, 2022 · 1 comment

Comments

@PeacefulGemini
Copy link

Please provide as much of the following information as possible. Please do not raise issues to ask for help developing your app.

Expected behaviour

won't crash

Actual behaviour

sometimes crash

Steps to reproduce

zoom and move image frequently, there is a chance that crash.
may be add and remove animation continuously cause to error.

Fatal Exception: java.lang.NullPointerException
Attempt to read from field 'com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView$OnAnimationEventListener com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView$Anim.listener' on a null object reference
com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView$Anim.access$2800 (SubsamplingScaleImageView.java:1898)
com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.onDraw (SubsamplingScaleImageView.java:1018)
android.view.View.draw (View.java:23017)
android.view.View.updateDisplayListIfDirty (View.java:21885)
android.view.ViewGroup.recreateChildDisplayList (ViewGroup.java:4526)
android.view.ViewGroup.dispatchGetDisplayList (ViewGroup.java:4499)
android.view.View.updateDisplayListIfDirty (View.java:21838)
android.view.ViewGroup.recreateChildDisplayList (ViewGroup.java:4526)
android.view.ViewGroup.dispatchGetDisplayList (ViewGroup.java:4499)
android.view.View.updateDisplayListIfDirty (View.java:21838)
android.view.ViewGroup.recreateChildDisplayList (ViewGroup.java:4526)
android.view.ViewGroup.dispatchGetDisplayList (ViewGroup.java:4499)
android.view.View.updateDisplayListIfDirty (View.java:21838)
android.view.ViewGroup.recreateChildDisplayList (ViewGroup.java:4526)
android.view.ViewGroup.dispatchGetDisplayList (ViewGroup.java:4499)
android.view.View.updateDisplayListIfDirty (View.java:21838)

(Include your setup code, and where relevant, your layout XML)

Affected devices

Many Android devices
(Specific devices, screen densities, SDK versions)

Affected images

(Attach images you have problems with)

@HeHans
Copy link

HeHans commented Feb 17, 2023

@davemorrissey I also have the same issue, please provider same information.

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

No branches or pull requests

2 participants