{"action":"created","issue":{"url":"https://api.github.com/repos/DeveloperPaul123/FilePickerLibrary/issues/19","labels_url":"https://api.github.com/repos/DeveloperPaul123/FilePickerLibrary/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/DeveloperPaul123/FilePickerLibrary/issues/19/comments","events_url":"https://api.github.com/repos/DeveloperPaul123/FilePickerLibrary/issues/19/events","html_url":"https://github.com/DeveloperPaul123/FilePickerLibrary/issues/19","id":112607823,"number":19,"title":"Exception: Cannot add header view to list -- setAdapter has already been called.","user":{"login":"alirezaaa","id":7955356,"avatar_url":"https://avatars.githubusercontent.com/u/7955356?v=3","gravatar_id":"","url":"https://api.github.com/users/alirezaaa","html_url":"https://github.com/alirezaaa","followers_url":"https://api.github.com/users/alirezaaa/followers","following_url":"https://api.github.com/users/alirezaaa/following{/other_user}","gists_url":"https://api.github.com/users/alirezaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/alirezaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alirezaaa/subscriptions","organizations_url":"https://api.github.com/users/alirezaaa/orgs","repos_url":"https://api.github.com/users/alirezaaa/repos","events_url":"https://api.github.com/users/alirezaaa/events{/privacy}","received_events_url":"https://api.github.com/users/alirezaaa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-21T14:53:11Z","updated_at":"2015-10-21T15:51:05Z","closed_at":null,"body":"Hi,\r\n\r\n```\r\n10-21 18:20:40.586  31540-31540/com.collect_up.c_up E/AndroidRuntime﹕ FATAL EXCEPTION: main\r\n    java.lang.IllegalStateException: Cannot add header view to list -- setAdapter has already been called.\r\n            at android.widget.ListView.addHeaderView(ListView.java:265)\r\n            at android.widget.ListView.addHeaderView(ListView.java:294)\r\n            at com.devpaul.filepickerlibrary.FilePickerActivity$UpdateFilesTask.onPostExecute(FilePickerActivity.java:670)\r\n            at com.devpaul.filepickerlibrary.FilePickerActivity$UpdateFilesTask.onPostExecute(FilePickerActivity.java:628)\r\n            at android.os.AsyncTask.finish(AsyncTask.java:631)\r\n            at android.os.AsyncTask.access$600(AsyncTask.java:177)\r\n            at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644)\r\n            at android.os.Handler.dispatchMessage(Handler.java:99)\r\n            at android.os.Looper.loop(Looper.java:137)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5419)\r\n            at java.lang.reflect.Method.invokeNative(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:525)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)\r\n            at dalvik.system.NativeStart.main(Native Method)\r\n```\r\nThe above exception will be thrown sometimes. Please help me to fix that. Thanks."},"comment":{"url":"https://api.github.com/repos/DeveloperPaul123/FilePickerLibrary/issues/comments/149940294","html_url":"https://github.com/DeveloperPaul123/FilePickerLibrary/issues/19#issuecomment-149940294","issue_url":"https://api.github.com/repos/DeveloperPaul123/FilePickerLibrary/issues/19","id":149940294,"user":{"login":"DeveloperPaul123","id":6591180,"avatar_url":"https://avatars.githubusercontent.com/u/6591180?v=3","gravatar_id":"","url":"https://api.github.com/users/DeveloperPaul123","html_url":"https://github.com/DeveloperPaul123","followers_url":"https://api.github.com/users/DeveloperPaul123/followers","following_url":"https://api.github.com/users/DeveloperPaul123/following{/other_user}","gists_url":"https://api.github.com/users/DeveloperPaul123/gists{/gist_id}","starred_url":"https://api.github.com/users/DeveloperPaul123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeveloperPaul123/subscriptions","organizations_url":"https://api.github.com/users/DeveloperPaul123/orgs","repos_url":"https://api.github.com/users/DeveloperPaul123/repos","events_url":"https://api.github.com/users/DeveloperPaul123/events{/privacy}","received_events_url":"https://api.github.com/users/DeveloperPaul123/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T15:51:05Z","updated_at":"2015-10-21T15:51:05Z","body":"Can you post your code of how you are using the library? This is hard to diagnose without any context. Also what version of the library are you using?"}}