Skip to content

NullPointerException requestDisallowInterceptTouchEvent(boolean) #245

@fkirc

Description

@fkirc

I am not sure why this is happening, and it seems to appear pretty random.
I use a custom onTouchListener on the SubsamplingScaleImageView to detect swipe gestures and a ViewAnimator to create swipe animations between images.

FATAL EXCEPTION: main
PID: 31476
java.lang.NullPointerException: Attempt to invoke interface method 'void android.view.ViewParent.requestDisallowInterceptTouchEvent(boolean)' on a null object reference
at com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView.onTouchEvent(SubsamplingScaleImageView.java:591)
at android.view.View.dispatchTouchEvent(View.java:9377)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2255)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2554) ......

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions