Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

NullPointerException, call beginFakeDrag before fakeDragBy #429

Open
Logan676 opened this issue Apr 2, 2018 · 0 comments
Open

NullPointerException, call beginFakeDrag before fakeDragBy #429

Logan676 opened this issue Apr 2, 2018 · 0 comments

Comments

@Logan676
Copy link

Logan676 commented Apr 2, 2018

if (mViewPager.isFakeDragging() || mViewPager.beginFakeDrag()) {

java.lang.NullPointerException:   Attempt to invoke virtual method 'void   android.view.VelocityTracker.addMovement(android.view.MotionEvent)' on a null   object reference\n\tat   android.support.v4.view.ViewPager.fakeDragBy(SourceFile:2644)\n\tat   com.xxx.xxx.ui.widget.aj.onTouchEvent(SourceFile:296)\n\tat   android.view.View.dispatchTouchEvent(View.java:9414)\n\tat   
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant