{"action":"created","issue":{"url":"https://api.github.com/repos/HackIllinois/android-2017/issues/123","repository_url":"https://api.github.com/repos/HackIllinois/android-2017","labels_url":"https://api.github.com/repos/HackIllinois/android-2017/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/HackIllinois/android-2017/issues/123/comments","events_url":"https://api.github.com/repos/HackIllinois/android-2017/issues/123/events","html_url":"https://github.com/HackIllinois/android-2017/issues/123","id":299067710,"number":123,"title":"NPE after logging out -> logging in -> clicking event","user":{"login":"kevinhinterlong","id":12093492,"avatar_url":"https://avatars1.githubusercontent.com/u/12093492?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinhinterlong","html_url":"https://github.com/kevinhinterlong","followers_url":"https://api.github.com/users/kevinhinterlong/followers","following_url":"https://api.github.com/users/kevinhinterlong/following{/other_user}","gists_url":"https://api.github.com/users/kevinhinterlong/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinhinterlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinhinterlong/subscriptions","organizations_url":"https://api.github.com/users/kevinhinterlong/orgs","repos_url":"https://api.github.com/users/kevinhinterlong/repos","events_url":"https://api.github.com/users/kevinhinterlong/events{/privacy}","received_events_url":"https://api.github.com/users/kevinhinterlong/received_events","type":"User","site_admin":false},"labels":[{"id":379511748,"url":"https://api.github.com/repos/HackIllinois/android-2017/labels/Bug","name":"Bug","color":"ee0701","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-21T17:54:12Z","updated_at":"2018-02-22T00:39:33Z","closed_at":null,"author_association":"MEMBER","body":"When the user logs out, we clear the local preferences/caches which is where we store the mapping of\r\n\r\n`locationId` -> `locationName`\r\n\r\nso if the user logs out, immediately logs back in, and then tries to click on an event for more details this mapping is not created.\r\n\r\nFortunately the crash forces the application to be restarted which solves the issue, but we could just fetch it where it's needed instead of relying on `SharedPreferences`"},"comment":{"url":"https://api.github.com/repos/HackIllinois/android-2017/issues/comments/367527744","html_url":"https://github.com/HackIllinois/android-2017/issues/123#issuecomment-367527744","issue_url":"https://api.github.com/repos/HackIllinois/android-2017/issues/123","id":367527744,"user":{"login":"kevinhinterlong","id":12093492,"avatar_url":"https://avatars1.githubusercontent.com/u/12093492?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinhinterlong","html_url":"https://github.com/kevinhinterlong","followers_url":"https://api.github.com/users/kevinhinterlong/followers","following_url":"https://api.github.com/users/kevinhinterlong/following{/other_user}","gists_url":"https://api.github.com/users/kevinhinterlong/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinhinterlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinhinterlong/subscriptions","organizations_url":"https://api.github.com/users/kevinhinterlong/orgs","repos_url":"https://api.github.com/users/kevinhinterlong/repos","events_url":"https://api.github.com/users/kevinhinterlong/events{/privacy}","received_events_url":"https://api.github.com/users/kevinhinterlong/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T00:39:33Z","updated_at":"2018-02-22T00:39:33Z","author_association":"MEMBER","body":"Here's a log of this\r\n\r\n```java\r\njava.lang.NullPointerException: Attempt to invoke virtual method 'org.hackillinois.android.api.response.location.LocationResponse$Location[] org.hackillinois.android.api.response.location.LocationResponse.getLocations()' on a null object reference\r\n\tat org.hackillinois.android.ui.modules.event.EventButtonItem.bindViewHolder(EventButtonItem.java:49)\r\n\tat org.hackillinois.android.ui.modules.event.EventButtonItem.bindViewHolder(EventButtonItem.java:21)\r\n\tat eu.davidea.flexibleadapter.FlexibleAdapter.onBindViewHolder(FlexibleAdapter.java:1723)\r\n\tat android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6541)\r\n\tat android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5484)\r\n\tat android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5750)\r\n\tat android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5589)\r\n\tat android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5585)\r\n\t...\r\n```"}}
{"actor":{"display_login":"kevinhinterlong"}}