{"action":"created","issue":{"url":"https://api.github.com/repos/fossasia/open-event-android/issues/638","repository_url":"https://api.github.com/repos/fossasia/open-event-android","labels_url":"https://api.github.com/repos/fossasia/open-event-android/issues/638/labels{/name}","comments_url":"https://api.github.com/repos/fossasia/open-event-android/issues/638/comments","events_url":"https://api.github.com/repos/fossasia/open-event-android/issues/638/events","html_url":"https://github.com/fossasia/open-event-android/issues/638","id":172759739,"number":638,"title":"App crashing on schedules.","user":{"login":"gogeta95","id":8329096,"avatar_url":"https://avatars.githubusercontent.com/u/8329096?v=3","gravatar_id":"","url":"https://api.github.com/users/gogeta95","html_url":"https://github.com/gogeta95","followers_url":"https://api.github.com/users/gogeta95/followers","following_url":"https://api.github.com/users/gogeta95/following{/other_user}","gists_url":"https://api.github.com/users/gogeta95/gists{/gist_id}","starred_url":"https://api.github.com/users/gogeta95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gogeta95/subscriptions","organizations_url":"https://api.github.com/users/gogeta95/orgs","repos_url":"https://api.github.com/users/gogeta95/repos","events_url":"https://api.github.com/users/gogeta95/events{/privacy}","received_events_url":"https://api.github.com/users/gogeta95/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mananwason","id":10570249,"avatar_url":"https://avatars.githubusercontent.com/u/10570249?v=3","gravatar_id":"","url":"https://api.github.com/users/mananwason","html_url":"https://github.com/mananwason","followers_url":"https://api.github.com/users/mananwason/followers","following_url":"https://api.github.com/users/mananwason/following{/other_user}","gists_url":"https://api.github.com/users/mananwason/gists{/gist_id}","starred_url":"https://api.github.com/users/mananwason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mananwason/subscriptions","organizations_url":"https://api.github.com/users/mananwason/orgs","repos_url":"https://api.github.com/users/mananwason/repos","events_url":"https://api.github.com/users/mananwason/events{/privacy}","received_events_url":"https://api.github.com/users/mananwason/received_events","type":"User","site_admin":false},"assignees":[{"login":"mananwason","id":10570249,"avatar_url":"https://avatars.githubusercontent.com/u/10570249?v=3","gravatar_id":"","url":"https://api.github.com/users/mananwason","html_url":"https://github.com/mananwason","followers_url":"https://api.github.com/users/mananwason/followers","following_url":"https://api.github.com/users/mananwason/following{/other_user}","gists_url":"https://api.github.com/users/mananwason/gists{/gist_id}","starred_url":"https://api.github.com/users/mananwason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mananwason/subscriptions","organizations_url":"https://api.github.com/users/mananwason/orgs","repos_url":"https://api.github.com/users/mananwason/repos","events_url":"https://api.github.com/users/mananwason/events{/privacy}","received_events_url":"https://api.github.com/users/mananwason/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-08-23T17:33:03Z","updated_at":"2016-08-24T10:07:10Z","closed_at":null,"body":"App is crashing on schedules @mananwason @the-dagger.\r\nsteps to reproduce crash:\r\n\r\n>1. open schedule.\r\n>2. turn internet OFF.\r\n>3. turn internet ON.\r\n\r\nadding stacktrace: \r\n```\r\n08-23 22:54:29.889 2571-2571/org.fossasia.openevent E/AndroidRuntime: FATAL EXCEPTION: main\r\n                                                                      Process: org.fossasia.openevent, PID: 2571\r\n                                                                      java.lang.RuntimeException: Could not dispatch event: class org.fossasia.openevent.events.CounterEvent to handler [EventHandler public void org.fossasia.openevent.activities.MainActivity.onCounterReceiver(org.fossasia.openevent.events.CounterEvent)]: Invalid index 0, size is 0\r\n                                                                          at com.squareup.otto.Bus.throwRuntimeException(Bus.java:460)\r\n                                                                          at com.squareup.otto.Bus.dispatch(Bus.java:387)\r\n                                                                          at com.squareup.otto.Bus.dispatchQueuedEvents(Bus.java:368)\r\n                                                                          at com.squareup.otto.Bus.post(Bus.java:337)\r\n                                                                          at org.fossasia.openevent.OpenEventApp$1.run(OpenEventApp.java:59)\r\n                                                                          at android.os.Handler.handleCallback(Handler.java:733)\r\n                                                                          at android.os.Handler.dispatchMessage(Handler.java:95)\r\n                                                                          at android.os.Looper.loop(Looper.java:136)\r\n                                                                          at android.app.ActivityThread.main(ActivityThread.java:5001)\r\n                                                                          at java.lang.reflect.Method.invokeNative(Native Method)\r\n                                                                          at java.lang.reflect.Method.invoke(Method.java:515)\r\n                                                                          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)\r\n                                                                          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)\r\n                                                                          at dalvik.system.NativeStart.main(Native Method)\r\n                                                                       Caused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0\r\n                                                                          at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)\r\n                                                                          at java.util.ArrayList.get(ArrayList.java:308)\r\n                                                                          at org.fossasia.openevent.utils.ISO8601Date.setEventTimezone(ISO8601Date.java:135)\r\n                                                                          at org.fossasia.openevent.utils.ISO8601Date.getDateObject(ISO8601Date.java:91)\r\n                                                                          at org.fossasia.openevent.activities.MainActivity.syncComplete(MainActivity.java:327)\r\n                                                                          at org.fossasia.openevent.activities.MainActivity.onCounterReceiver(MainActivity.java:511)\r\n                                                                          at java.lang.reflect.Method.invokeNative(Native Method)\r\n                                                                          at java.lang.reflect.Method.invoke(Method.java:515)\r\n                                                                          at com.squareup.otto.EventHandler.handleEvent(EventHandler.java:89)\r\n                                                                          at com.squareup.otto.Bus.dispatch(Bus.java:385)\r\n                                                                          at com.squareup.otto.Bus.dispatchQueuedEvents(Bus.java:368) \r\n                                                                          at com.squareup.otto.Bus.post(Bus.java:337) \r\n                                                                          at org.fossasia.openevent.OpenEventApp$1.run(OpenEventApp.java:59) \r\n                                                                          at android.os.Handler.handleCallback(Handler.java:733) \r\n                                                                          at android.os.Handler.dispatchMessage(Handler.java:95) \r\n                                                                          at android.os.Looper.loop(Looper.java:136) \r\n                                                                          at android.app.ActivityThread.main(ActivityThread.java:5001) \r\n                                                                          at java.lang.reflect.Method.invokeNative(Native Method) \r\n                                                                          at java.lang.reflect.Method.invoke(Method.java:515) \r\n                                                                          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) \r\n                                                                          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) \r\n                                                                          at dalvik.system.NativeStart.main(Native Method)\r\n```\r\n\r\nAndroid version: 4.4.4, API 19\r\nDevice: Genymotion emulator , 768x1280"},"comment":{"url":"https://api.github.com/repos/fossasia/open-event-android/issues/comments/242015902","html_url":"https://github.com/fossasia/open-event-android/issues/638#issuecomment-242015902","issue_url":"https://api.github.com/repos/fossasia/open-event-android/issues/638","id":242015902,"user":{"login":"the-dagger","id":6565270,"avatar_url":"https://avatars.githubusercontent.com/u/6565270?v=3","gravatar_id":"","url":"https://api.github.com/users/the-dagger","html_url":"https://github.com/the-dagger","followers_url":"https://api.github.com/users/the-dagger/followers","following_url":"https://api.github.com/users/the-dagger/following{/other_user}","gists_url":"https://api.github.com/users/the-dagger/gists{/gist_id}","starred_url":"https://api.github.com/users/the-dagger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-dagger/subscriptions","organizations_url":"https://api.github.com/users/the-dagger/orgs","repos_url":"https://api.github.com/users/the-dagger/repos","events_url":"https://api.github.com/users/the-dagger/events{/privacy}","received_events_url":"https://api.github.com/users/the-dagger/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T10:07:10Z","updated_at":"2016-08-24T10:07:10Z","body":"Cool :+1:"}}
{"actor":{"display_login":"the-dagger"}}