{"action":"created","issue":{"url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/211","repository_url":"https://api.github.com/repos/mixpanel/mixpanel-android","labels_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/211/comments","events_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/211/events","html_url":"https://github.com/mixpanel/mixpanel-android/issues/211","id":71338103,"number":211,"title":"Apparent race condition in surveys - NPE when dismissing a survey after calling reset on MixpanelAPI","user":{"login":"joeatwork","id":106866,"avatar_url":"https://avatars.githubusercontent.com/u/106866?v=3","gravatar_id":"","url":"https://api.github.com/users/joeatwork","html_url":"https://github.com/joeatwork","followers_url":"https://api.github.com/users/joeatwork/followers","following_url":"https://api.github.com/users/joeatwork/following{/other_user}","gists_url":"https://api.github.com/users/joeatwork/gists{/gist_id}","starred_url":"https://api.github.com/users/joeatwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeatwork/subscriptions","organizations_url":"https://api.github.com/users/joeatwork/orgs","repos_url":"https://api.github.com/users/joeatwork/repos","events_url":"https://api.github.com/users/joeatwork/events{/privacy}","received_events_url":"https://api.github.com/users/joeatwork/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mixpanel/mixpanel-android/labels/bug","name":"bug","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-27T16:36:02Z","updated_at":"2016-06-22T17:19:19Z","closed_at":null,"body":"From a report by @badeleux\r\n\r\n```\r\njava.lang.RuntimeException: Unable to destroy activity {com.ultimatefanlive.ultimatefanandroid/com.mixpanel.android.surveys.SurveyActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'void com.mixpanel.android.mpmetrics.MixpanelAPI$People.append(java.lang.String, java.lang.Object)' on a null object reference\r\n       at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3706)\r\n       at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3724)\r\n       at android.app.ActivityThread.access$1400(ActivityThread.java:151)\r\n       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1357)\r\n       at android.os.Handler.dispatchMessage(Handler.java:102)\r\n       at android.os.Looper.loop(Looper.java:135)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5254)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at java.lang.reflect.Method.invoke(Method.java:372)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\nCaused by: java.lang.NullPointerException: Attempt to invoke interface method 'void com.mixpanel.android.mpmetrics.MixpanelAPI$People.append(java.lang.String, java.lang.Object)' on a null object reference\r\n       at com.mixpanel.android.surveys.SurveyActivity.onDestroySurvey(SurveyActivity.java:321)\r\n       at com.mixpanel.android.surveys.SurveyActivity.onDestroy(SurveyActivity.java:305)\r\n       at android.app.Activity.performDestroy(Activity.java:6169)\r\n       at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1141)\r\n       at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3693)\r\n       at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3724)\r\n       at android.app.ActivityThread.access$1400(ActivityThread.java:151)\r\n       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1357)\r\n       at android.os.Handler.dispatchMessage(Handler.java:102)\r\n       at android.os.Looper.loop(Looper.java:135)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5254)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at java.lang.reflect.Method.invoke(Method.java:372)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\n```"},"comment":{"url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/comments/227814751","html_url":"https://github.com/mixpanel/mixpanel-android/issues/211#issuecomment-227814751","issue_url":"https://api.github.com/repos/mixpanel/mixpanel-android/issues/211","id":227814751,"user":{"login":"patedit","id":1812240,"avatar_url":"https://avatars.githubusercontent.com/u/1812240?v=3","gravatar_id":"","url":"https://api.github.com/users/patedit","html_url":"https://github.com/patedit","followers_url":"https://api.github.com/users/patedit/followers","following_url":"https://api.github.com/users/patedit/following{/other_user}","gists_url":"https://api.github.com/users/patedit/gists{/gist_id}","starred_url":"https://api.github.com/users/patedit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patedit/subscriptions","organizations_url":"https://api.github.com/users/patedit/orgs","repos_url":"https://api.github.com/users/patedit/repos","events_url":"https://api.github.com/users/patedit/events{/privacy}","received_events_url":"https://api.github.com/users/patedit/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T17:19:18Z","updated_at":"2016-06-22T17:19:18Z","body":"https://github.com/mixpanel/mixpanel-android/pull/361 will solve this issue. Thanks a lot to @ryanseams for the fix :)"}}
{"actor":{"display_login":"patedit"}}