{"action":"created","issue":{"url":"https://api.github.com/repos/nextcloud/android/issues/630","repository_url":"https://api.github.com/repos/nextcloud/android","labels_url":"https://api.github.com/repos/nextcloud/android/issues/630/labels{/name}","comments_url":"https://api.github.com/repos/nextcloud/android/issues/630/comments","events_url":"https://api.github.com/repos/nextcloud/android/issues/630/events","html_url":"https://github.com/nextcloud/android/issues/630","id":205545632,"number":630,"title":"New autoupload not respecting custom directories & errors","user":{"login":"jasonbayton","id":3178412,"avatar_url":"https://avatars.githubusercontent.com/u/3178412?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonbayton","html_url":"https://github.com/jasonbayton","followers_url":"https://api.github.com/users/jasonbayton/followers","following_url":"https://api.github.com/users/jasonbayton/following{/other_user}","gists_url":"https://api.github.com/users/jasonbayton/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonbayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonbayton/subscriptions","organizations_url":"https://api.github.com/users/jasonbayton/orgs","repos_url":"https://api.github.com/users/jasonbayton/repos","events_url":"https://api.github.com/users/jasonbayton/events{/privacy}","received_events_url":"https://api.github.com/users/jasonbayton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mario","id":5810,"avatar_url":"https://avatars.githubusercontent.com/u/5810?v=3","gravatar_id":"","url":"https://api.github.com/users/mario","html_url":"https://github.com/mario","followers_url":"https://api.github.com/users/mario/followers","following_url":"https://api.github.com/users/mario/following{/other_user}","gists_url":"https://api.github.com/users/mario/gists{/gist_id}","starred_url":"https://api.github.com/users/mario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mario/subscriptions","organizations_url":"https://api.github.com/users/mario/orgs","repos_url":"https://api.github.com/users/mario/repos","events_url":"https://api.github.com/users/mario/events{/privacy}","received_events_url":"https://api.github.com/users/mario/received_events","type":"User","site_admin":false},"assignees":[{"login":"mario","id":5810,"avatar_url":"https://avatars.githubusercontent.com/u/5810?v=3","gravatar_id":"","url":"https://api.github.com/users/mario","html_url":"https://github.com/mario","followers_url":"https://api.github.com/users/mario/followers","following_url":"https://api.github.com/users/mario/following{/other_user}","gists_url":"https://api.github.com/users/mario/gists{/gist_id}","starred_url":"https://api.github.com/users/mario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mario/subscriptions","organizations_url":"https://api.github.com/users/mario/orgs","repos_url":"https://api.github.com/users/mario/repos","events_url":"https://api.github.com/users/mario/events{/privacy}","received_events_url":"https://api.github.com/users/mario/received_events","type":"User","site_admin":false}],"milestone":null,"comments":49,"created_at":"2017-02-06T10:43:32Z","updated_at":"2017-02-13T19:09:09Z","closed_at":null,"body":"### Actual behaviour\r\n- When a photo is automatically uploaded, it creates a default instantupload folder in NC root and populates files within that folder (and respective subfolders it creates)\r\n\r\n### Expected behaviour\r\n- As I've selected custom folders for device folders to upload to, I expect it to respect those. \r\n\r\n### Environment data\r\nAndroid version: 6.0.1\r\n\r\nDevice model: Vodafone VFD 900\r\n\r\nStock or customized system: Stock\r\n\r\nNextcloud app version: 20170206\r\n\r\nNextcloud server version: 11.0.1\r\n\r\n### Logs\r\n\r\nThe following shows up when I click on the uploads menu item: \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.UploadListActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference\r\nat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2452)\r\nat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)\r\nat android.app.ActivityThread.access$900(ActivityThread.java:158)\r\nat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)\r\nat android.os.Handler.dispatchMessage(Handler.java:102)\r\nat android.os.Looper.loop(Looper.java:148)\r\nat android.app.ActivityThread.main(ActivityThread.java:5515)\r\nat java.lang.reflect.Method.invoke(Native Method)\r\nat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:764)\r\nat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:654)\r\nCaused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference\r\nat com.owncloud.android.datamodel.UploadsStorageManager.getPendingJobs(UploadsStorageManager.java:402)\r\nat com.owncloud.android.datamodel.UploadsStorageManager.getCurrentAndPendingUploads(UploadsStorageManager.java:390)\r\nat com.owncloud.android.ui.adapter.ExpandableUploadListAdapter$1.refresh(ExpandableUploadListAdapter.java:150)\r\nat com.owncloud.android.ui.adapter.ExpandableUploadListAdapter.loadUploadItemsFromDb(ExpandableUploadListAdapter.java:620)\r\nat com.owncloud.android.ui.adapter.ExpandableUploadListAdapter.<init>(ExpandableUploadListAdapter.java:185)\r\nat com.owncloud.android.ui.fragment.UploadListFragment.onStart(UploadListFragment.java:103)\r\nat android.support.v4.app.Fragment.performStart(Fragment.java:2106)\r\nat android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1146)\r\nat android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1290)\r\nat android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1272)\r\nat android.support.v4.app.FragmentManagerImpl.dispatchStart(FragmentManager.java:2154)\r\nat android.support.v4.app.FragmentController.dispatchStart(FragmentController.java:212)\r\nat android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:610)\r\nat android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:178)\r\nat com.owncloud.android.ui.activity.BaseActivity.onStart(BaseActivity.java:189)\r\nat com.owncloud.android.ui.activity.FileActivity.onStart(FileActivity.java:181)\r\nat android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1250)\r\nat android.app.Activity.performStart(Activity.java:6476)\r\nat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2415)\r\n... 9 more\r\n\r\n************ DEVICE INFORMATION ***********\r\nBrand: Vodafone\r\nDevice: VFD900\r\nModel: VFD 900\r\nId: MMB29M\r\nProduct: Smart_platinum7\r\n\r\n************ FIRMWARE ************\r\nSDK: 23\r\nRelease: 6.0.1\r\nIncremental: vH8H-0\r\n```"},"comment":{"url":"https://api.github.com/repos/nextcloud/android/issues/comments/279490328","html_url":"https://github.com/nextcloud/android/issues/630#issuecomment-279490328","issue_url":"https://api.github.com/repos/nextcloud/android/issues/630","id":279490328,"user":{"login":"jasonbayton","id":3178412,"avatar_url":"https://avatars.githubusercontent.com/u/3178412?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonbayton","html_url":"https://github.com/jasonbayton","followers_url":"https://api.github.com/users/jasonbayton/followers","following_url":"https://api.github.com/users/jasonbayton/following{/other_user}","gists_url":"https://api.github.com/users/jasonbayton/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonbayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonbayton/subscriptions","organizations_url":"https://api.github.com/users/jasonbayton/orgs","repos_url":"https://api.github.com/users/jasonbayton/repos","events_url":"https://api.github.com/users/jasonbayton/events{/privacy}","received_events_url":"https://api.github.com/users/jasonbayton/received_events","type":"User","site_admin":false},"created_at":"2017-02-13T19:09:09Z","updated_at":"2017-02-13T19:09:09Z","body":"Yes, here's an example file uploaded to 2016/10 with a modified date of 2016/09.\r\n\r\n![screenshot_20170213-190651](https://cloud.githubusercontent.com/assets/3178412/22898582/bbfc03a4-f21f-11e6-8b49-81e89a90c4ac.png)\r\n\r\nHow come you've opted for last modified instead of filename?\r\n"}}
{"actor":{"display_login":"jasonbayton"}}