{"action":"opened","issue":{"url":"https://api.github.com/repos/pif/android-select-file/issues/1","labels_url":"https://api.github.com/repos/pif/android-select-file/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/pif/android-select-file/issues/1/comments","events_url":"https://api.github.com/repos/pif/android-select-file/issues/1/events","html_url":"https://github.com/pif/android-select-file/issues/1","id":88535076,"number":1,"title":"Processing example crashes on startup","user":{"login":"b2renger","id":1818874,"avatar_url":"https://avatars.githubusercontent.com/u/1818874?v=3","gravatar_id":"","url":"https://api.github.com/users/b2renger","html_url":"https://github.com/b2renger","followers_url":"https://api.github.com/users/b2renger/followers","following_url":"https://api.github.com/users/b2renger/following{/other_user}","gists_url":"https://api.github.com/users/b2renger/gists{/gist_id}","starred_url":"https://api.github.com/users/b2renger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b2renger/subscriptions","organizations_url":"https://api.github.com/users/b2renger/orgs","repos_url":"https://api.github.com/users/b2renger/repos","events_url":"https://api.github.com/users/b2renger/events{/privacy}","received_events_url":"https://api.github.com/users/b2renger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-15T20:42:19Z","updated_at":"2015-06-15T20:42:19Z","closed_at":null,"body":"Hello,\r\n\r\nI'm trying to use the processing android lib, with processing 2.2.1, targetting a nexus 5 on 5.1.1\r\n\r\nThe example provided crashes with this error :-1: \r\n\r\n\r\nFATAL EXCEPTION: main\r\nProcess: processing.test.select, PID: 26412\r\njava.lang.NullPointerException: Attempt to get length of null array\r\n\tat java.util.TimSort.sort(TimSort.java:169)\r\n\tat java.util.Arrays.sort(Arrays.java:2010)\r\n\tat select.files.SelectDialog.sortData(Unknown Source)\r\n\tat select.files.SelectDialog.getData(Unknown Source)\r\n\tat select.files.SelectDialog.updateCurrentList(Unknown Source)\r\n\tat select.files.SelectDialog.onCreate(Unknown Source)\r\n\tat android.app.Dialog.dispatchOnCreate(Dialog.java:373)\r\n\tat android.app.Dialog.show(Dialog.java:274)\r\n\tat select.files.SelectLibrary$1.run(Unknown Source)\r\n\tat android.os.Handler.handleCallback(Handler.java:739)\r\n\tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n\tat android.os.Looper.loop(Looper.java:135)\r\n\tat android.app.ActivityThread.main(ActivityThread.java:5254)\r\n\tat java.lang.reflect.Method.invoke(Native Method)\r\n\tat java.lang.reflect.Method.invoke(Method.java:372)\r\n\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)\r\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\n\r\nI remember having already used this great lib sometime ago, but I don't remember on which processing version nor android version I used at the time.\r\n\r\nSomething must have been broken with an update. I'll try to dig in the code a bit, but help would be very welcome."}}