{"action":"opened","issue":{"url":"https://api.github.com/repos/nextcloud/android/issues/283","repository_url":"https://api.github.com/repos/nextcloud/android","labels_url":"https://api.github.com/repos/nextcloud/android/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/android/issues/283/comments","events_url":"https://api.github.com/repos/nextcloud/android/issues/283/events","html_url":"https://github.com/nextcloud/android/issues/283","id":178289923,"number":283,"title":"Crash when sending non-existing log","user":{"login":"AndyScherzinger","id":1315170,"avatar_url":"https://avatars.githubusercontent.com/u/1315170?v=3","gravatar_id":"","url":"https://api.github.com/users/AndyScherzinger","html_url":"https://github.com/AndyScherzinger","followers_url":"https://api.github.com/users/AndyScherzinger/followers","following_url":"https://api.github.com/users/AndyScherzinger/following{/other_user}","gists_url":"https://api.github.com/users/AndyScherzinger/gists{/gist_id}","starred_url":"https://api.github.com/users/AndyScherzinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndyScherzinger/subscriptions","organizations_url":"https://api.github.com/users/AndyScherzinger/orgs","repos_url":"https://api.github.com/users/AndyScherzinger/repos","events_url":"https://api.github.com/users/AndyScherzinger/events{/privacy}","received_events_url":"https://api.github.com/users/AndyScherzinger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nextcloud/android/labels/1.%20to%20develop","name":"1. to develop","color":"0052cc"},{"url":"https://api.github.com/repos/nextcloud/android/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-21T09:13:45Z","updated_at":"2016-09-21T09:13:45Z","closed_at":null,"body":"### Actual behaviour\r\n-trying to send the log when it is \"empty\" which in this case rather means it is non-existing\r\n\r\n### Expected behaviour\r\n-do a Index check and just ignore the send action\r\n \r\n```\r\n************ CAUSE OF ERROR ************\r\n\r\njava.lang.RuntimeException: Unable to start activity ComponentInfo{com.nextcloud.android.beta/com.owncloud.android.ui.activity.ReceiveExternalFilesActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0\r\n\tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2464)\r\n\tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2524)\r\n\tat android.app.ActivityThread.access$900(ActivityThread.java:154)\r\n\tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1391)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n\tat android.os.Looper.loop(Looper.java:234)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:5526)\r\n\tat java.lang.reflect.Method.invoke(Native Method)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\nCaused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0\r\n\tat java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)\r\n\tat java.util.ArrayList.get(ArrayList.java:308)\r\n\tat com.owncloud.android.ui.activity.ReceiveExternalFilesActivity.somethingToUpload(ReceiveExternalFilesActivity.java:544)\r\n\tat com.owncloud.android.ui.activity.ReceiveExternalFilesActivity.setAccount(ReceiveExternalFilesActivity.java:170)\r\n\tat com.owncloud.android.ui.activity.FileActivity.onCreate(FileActivity.java:160)\r\n\tat com.owncloud.android.ui.activity.ReceiveExternalFilesActivity.onCreate(ReceiveExternalFilesActivity.java:144)\r\n\tat android.app.Activity.performCreate(Activity.java:6285)\r\n\tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)\r\n\tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2417)\r\n\t... 9 more\r\n\r\n************ DEVICE INFORMATION ***********\r\nBrand: Sony\r\nDevice: D5803\r\nModel: D5803\r\nId: 23.5.A.1.291\r\nProduct: D5803\r\n\r\n************ FIRMWARE ************\r\nSDK: 23\r\nRelease: 6.0.1\r\nIncremental: 2769308465\r\n```"}}
{"actor":{"display_login":"AndyScherzinger"}}