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

Null pointer exception when deleting items by calling delete() #62

Open
easdue opened this issue Jul 11, 2015 · 0 comments
Open

Null pointer exception when deleting items by calling delete() #62

easdue opened this issue Jul 11, 2015 · 0 comments

Comments

@easdue
Copy link

easdue commented Jul 11, 2015

When you call delete with a position of a listItem that is not visible you get a nullpointer exception because you try to animate a null view.

java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewPropertyAnimator android.view.View.animate()' on a null object reference
at com.nineoldandroids.view.ViewPropertyAnimatorICS.(ViewPropertyAnimatorICS.java:22)
at com.nineoldandroids.view.ViewPropertyAnimator.animate(ViewPropertyAnimator.java:62)
at de.timroes.android.listview.EnhancedListView.slideOutView(EnhancedListView.java:615)
at de.timroes.android.listview.EnhancedListView.delete(EnhancedListView.java:592)

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