{"action":"created","issue":{"url":"https://api.github.com/repos/h6ah4i/android-advancedrecyclerview/issues/132","labels_url":"https://api.github.com/repos/h6ah4i/android-advancedrecyclerview/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/h6ah4i/android-advancedrecyclerview/issues/132/comments","events_url":"https://api.github.com/repos/h6ah4i/android-advancedrecyclerview/issues/132/events","html_url":"https://github.com/h6ah4i/android-advancedrecyclerview/issues/132","id":112394771,"number":132,"title":"Crash When Dragging and Swiping","user":{"login":"agrosner","id":2117859,"avatar_url":"https://avatars.githubusercontent.com/u/2117859?v=3","gravatar_id":"","url":"https://api.github.com/users/agrosner","html_url":"https://github.com/agrosner","followers_url":"https://api.github.com/users/agrosner/followers","following_url":"https://api.github.com/users/agrosner/following{/other_user}","gists_url":"https://api.github.com/users/agrosner/gists{/gist_id}","starred_url":"https://api.github.com/users/agrosner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrosner/subscriptions","organizations_url":"https://api.github.com/users/agrosner/orgs","repos_url":"https://api.github.com/users/agrosner/repos","events_url":"https://api.github.com/users/agrosner/events{/privacy}","received_events_url":"https://api.github.com/users/agrosner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-20T15:29:40Z","updated_at":"2015-10-20T15:36:33Z","closed_at":null,"body":"Version: 0.8.1\r\nSupport Lib Version: 23.0.1\r\n\r\nIt's pretty easy to reproduce:\r\n1. Drag an Item\r\n2. Swipe to delete an item\r\n3. Drag said item again.\r\n4. Crash:\r\n```\r\njava.lang.NullPointerException: Attempt to invoke interface method 'void android.support.v4.view.ViewPropertyAnimatorUpdateListener.onAnimationUpdate(android.view.View)' on a null object reference\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at android.support.v4.view.ViewPropertyAnimatorCompatKK$1.onAnimationUpdate(ViewPropertyAnimatorCompatKK.java:28)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationUpdate(ViewPropertyAnimator.java:1191)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at android.animation.ValueAnimator.animateValue(ValueAnimator.java:1463)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at android.animation.ValueAnimator.setCurrentFraction(ValueAnimator.java:642)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at android.animation.ValueAnimator.setCurrentPlayTime(ValueAnimator.java:589)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at android.animation.ValueAnimator.start(ValueAnimator.java:1106)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at android.animation.ValueAnimator.start(ValueAnimator.java:1117)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at android.view.ViewPropertyAnimator.startAnimation(ViewPropertyAnimator.java:903)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at android.view.ViewPropertyAnimator.start(ViewPropertyAnimator.java:415)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at android.support.v4.view.ViewPropertyAnimatorCompatICS.start(ViewPropertyAnimatorCompatICS.java:130)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at android.support.v4.view.ViewPropertyAnimatorCompat$ICSViewPropertyAnimatorCompatImpl.start(ViewPropertyAnimatorCompat.java:497)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at android.support.v4.view.ViewPropertyAnimatorCompat.start(ViewPropertyAnimatorCompat.java:1235)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at com.h6ah4i.android.widget.advrecyclerview.animator.impl.BaseItemAnimationManager.startActiveItemAnimation(BaseItemAnimationManager.java:173)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at com.h6ah4i.android.widget.advrecyclerview.animator.SwipeDismissItemAnimator$SwipeDismissItemMoveAnimationManager.onCreateAnimation(SwipeDismissItemAnimator.java:330)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at com.h6ah4i.android.widget.advrecyclerview.animator.SwipeDismissItemAnimator$SwipeDismissItemMoveAnimationManager.onCreateAnimation(SwipeDismissItemAnimator.java:306)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at com.h6ah4i.android.widget.advrecyclerview.animator.impl.BaseItemAnimationManager.createAnimation(BaseItemAnimationManager.java:152)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at com.h6ah4i.android.widget.advrecyclerview.animator.impl.BaseItemAnimationManager.runPendingAnimations(BaseItemAnimationManager.java:91)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at com.h6ah4i.android.widget.advrecyclerview.animator.GeneralItemAnimator.schedulePendingAnimationsByDefaultRule(GeneralItemAnimator.java:269)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at com.h6ah4i.android.widget.advrecyclerview.animator.SwipeDismissItemAnimator.onSchedulePendingAnimations(SwipeDismissItemAnimator.java:54)\r\n10-20 11:27:30.525 31967-31967/com.huffingtonpost.android.debug E/AndroidRuntime:     at com.h6ah4i.android.widget.advrecyclerview.animator.GeneralItemAnimator.runPendingAnimations(GeneralItemAnimator.java:62)\r\n```\r\nWhats happening is that the `animator.setListener(null)` in line 85 of `BaseDraggableItemDecorator` is getting nulled out. This means that it causes a crash in the support library."},"comment":{"url":"https://api.github.com/repos/h6ah4i/android-advancedrecyclerview/issues/comments/149606395","html_url":"https://github.com/h6ah4i/android-advancedrecyclerview/issues/132#issuecomment-149606395","issue_url":"https://api.github.com/repos/h6ah4i/android-advancedrecyclerview/issues/132","id":149606395,"user":{"login":"agrosner","id":2117859,"avatar_url":"https://avatars.githubusercontent.com/u/2117859?v=3","gravatar_id":"","url":"https://api.github.com/users/agrosner","html_url":"https://github.com/agrosner","followers_url":"https://api.github.com/users/agrosner/followers","following_url":"https://api.github.com/users/agrosner/following{/other_user}","gists_url":"https://api.github.com/users/agrosner/gists{/gist_id}","starred_url":"https://api.github.com/users/agrosner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrosner/subscriptions","organizations_url":"https://api.github.com/users/agrosner/orgs","repos_url":"https://api.github.com/users/agrosner/repos","events_url":"https://api.github.com/users/agrosner/events{/privacy}","received_events_url":"https://api.github.com/users/agrosner/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T15:36:33Z","updated_at":"2015-10-20T15:36:33Z","body":"also fails at support lib v23.1.0 and version 0.8.2"}}