{"action":"created","issue":{"url":"https://api.github.com/repos/alex-townsend/SwipeOpenItemTouchHelper/issues/10","repository_url":"https://api.github.com/repos/alex-townsend/SwipeOpenItemTouchHelper","labels_url":"https://api.github.com/repos/alex-townsend/SwipeOpenItemTouchHelper/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/alex-townsend/SwipeOpenItemTouchHelper/issues/10/comments","events_url":"https://api.github.com/repos/alex-townsend/SwipeOpenItemTouchHelper/issues/10/events","html_url":"https://github.com/alex-townsend/SwipeOpenItemTouchHelper/issues/10","id":153149568,"number":10,"title":"NullPointerException","user":{"login":"muigukenneth","id":4389000,"avatar_url":"https://avatars.githubusercontent.com/u/4389000?v=3","gravatar_id":"","url":"https://api.github.com/users/muigukenneth","html_url":"https://github.com/muigukenneth","followers_url":"https://api.github.com/users/muigukenneth/followers","following_url":"https://api.github.com/users/muigukenneth/following{/other_user}","gists_url":"https://api.github.com/users/muigukenneth/gists{/gist_id}","starred_url":"https://api.github.com/users/muigukenneth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muigukenneth/subscriptions","organizations_url":"https://api.github.com/users/muigukenneth/orgs","repos_url":"https://api.github.com/users/muigukenneth/repos","events_url":"https://api.github.com/users/muigukenneth/events{/privacy}","received_events_url":"https://api.github.com/users/muigukenneth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-05T01:11:20Z","updated_at":"2016-05-05T14:48:35Z","closed_at":null,"body":"Hi guys,i get a npe when i try swiping to close an open item while helper.setCloseOnAction(true) .Check out the exception below.\r\n\r\nFATAL EXCEPTION: main\r\n                                                                    \r\n                                                                     java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewParent android.view.View.getParent()' on a null object reference\r\n                                                                         at atownsend.swipeopenhelper.SwipeOpenItemTouchHelper.select(SwipeOpenItemTouchHelper.java:503)\r\n                                                                         at atownsend.swipeopenhelper.SwipeOpenItemTouchHelper.checkSelectForSwipe(SwipeOpenItemTouchHelper.java:820)\r\n                                                                         at atownsend.swipeopenhelper.SwipeOpenItemTouchHelper.access$700(SwipeOpenItemTouchHelper.java:51)\r\n                                                                         at atownsend.swipeopenhelper.SwipeOpenItemTouchHelper$2.onInterceptTouchEvent(SwipeOpenItemTouchHelper.java:251)\r\n                                                                         at android.support.v7.widget.RecyclerView.dispatchOnItemTouchIntercept(RecyclerView.java:2231)\r\n                                                                         at android.support.v7.widget.RecyclerView.onInterceptTouchEvent(RecyclerView.java:2277)\r\n                                                                         at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2285)\r\n                                                                         at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)\r\n                                                                         at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)\r\n                                                                         at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)\r\n                                                                         at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)\r\n                                                                         at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)\r\n                                                                         at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)\r\n                                                                         at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)\r\n                                                                         at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)\r\n                                                                         at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)\r\n                                                                         at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)\r\n                                                                         at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)\r\n                                                                         at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)\r\n                                                                         at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)\r\n                                                                         at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)\r\n                                                                         at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)\r\n                                                                         at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)\r\n                                                                         at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)\r\n                                                                         at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)\r\n                                                                         at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)\r\n                                                                         at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)\r\n                                                                         at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2684)\r\n                                                                         at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2400)\r\n                                                                         at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2552)\r\n                                                                         at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1767)\r\n                                                                         at android.app.Activity.dispatchTouchEvent(Activity.java:2840)\r\n                                                                         at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)\r\n                                                                         at android.support.v7.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)\r\n                                                                         at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2513)\r\n                                                                         at android.view.View.dispatchPointerEvent(View.java:9125)\r\n                                                                         at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4632)\r\n                                                                         at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4470)\r\n                                                                         at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4020)\r\n                                                                         at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4073)\r\n                                                                         at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4039)\r\n                                                                         at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4153)\r\n                                                                         at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4047)\r\n                                                                         at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4210)\r\n                                                                         at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4020)\r\n                                                                         at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4073)\r\n                                                                         at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4039)\r\n                                                                         at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4047)\r\n                                                                     \tat android.view.View"},"comment":{"url":"https://api.github.com/repos/alex-townsend/SwipeOpenItemTouchHelper/issues/comments/217174061","html_url":"https://github.com/alex-townsend/SwipeOpenItemTouchHelper/issues/10#issuecomment-217174061","issue_url":"https://api.github.com/repos/alex-townsend/SwipeOpenItemTouchHelper/issues/10","id":217174061,"user":{"login":"alex-townsend","id":10003432,"avatar_url":"https://avatars.githubusercontent.com/u/10003432?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-townsend","html_url":"https://github.com/alex-townsend","followers_url":"https://api.github.com/users/alex-townsend/followers","following_url":"https://api.github.com/users/alex-townsend/following{/other_user}","gists_url":"https://api.github.com/users/alex-townsend/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-townsend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-townsend/subscriptions","organizations_url":"https://api.github.com/users/alex-townsend/orgs","repos_url":"https://api.github.com/users/alex-townsend/repos","events_url":"https://api.github.com/users/alex-townsend/events{/privacy}","received_events_url":"https://api.github.com/users/alex-townsend/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T14:48:35Z","updated_at":"2016-05-05T14:48:35Z","body":"Nevermind, I replicated it. I'll have a fix in for this soon."}}