-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.View$OnTouchListener.onTouch(android.view.View, android.view.MotionEvent)' on a null object reference #45
Comments
You didn't set a background view? Without any code, it's more or less impossible for me to help you. |
I'm having the same issue. I pretty much just copy and pasted the example code on the git home screen. This is where the issue happens in the SwipeActionAdapter code:
Here is my code setting up the adapter: `mAccountAdapter.addBackground(SwipeDirection.DIRECTION_FAR_LEFT, R.layout.row_account_left)
|
Does it also happen if you just run the sample app? I can't reproduce this right now, which makes it hard to fix |
Same here, any solution? |
In my case, it is because mDownViewGroup is not set in SwipeActionTouchListener:268 because the cast to SwipeViewGroup does not work (It is of type RelativeLayout). This was due to overriding SwipeActionAdapter and overriding the getView() method in it. |
The text was updated successfully, but these errors were encountered: