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

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

@easdue

Description

@easdue

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)

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