{"action":"created","issue":{"url":"https://api.github.com/repos/projectbuendia/client/issues/199","labels_url":"https://api.github.com/repos/projectbuendia/client/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/projectbuendia/client/issues/199/comments","events_url":"https://api.github.com/repos/projectbuendia/client/issues/199/events","html_url":"https://github.com/projectbuendia/client/issues/199","id":126551600,"number":199,"title":"Crashes when form has empty sections","user":{"login":"dancunningham","id":961528,"avatar_url":"https://avatars.githubusercontent.com/u/961528?v=3","gravatar_id":"","url":"https://api.github.com/users/dancunningham","html_url":"https://github.com/dancunningham","followers_url":"https://api.github.com/users/dancunningham/followers","following_url":"https://api.github.com/users/dancunningham/following{/other_user}","gists_url":"https://api.github.com/users/dancunningham/gists{/gist_id}","starred_url":"https://api.github.com/users/dancunningham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dancunningham/subscriptions","organizations_url":"https://api.github.com/users/dancunningham/orgs","repos_url":"https://api.github.com/users/dancunningham/repos","events_url":"https://api.github.com/users/dancunningham/events{/privacy}","received_events_url":"https://api.github.com/users/dancunningham/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/projectbuendia/client/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/projectbuendia/client/labels/P1","name":"P1","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"capnfabs","id":1336508,"avatar_url":"https://avatars.githubusercontent.com/u/1336508?v=3","gravatar_id":"","url":"https://api.github.com/users/capnfabs","html_url":"https://github.com/capnfabs","followers_url":"https://api.github.com/users/capnfabs/followers","following_url":"https://api.github.com/users/capnfabs/following{/other_user}","gists_url":"https://api.github.com/users/capnfabs/gists{/gist_id}","starred_url":"https://api.github.com/users/capnfabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capnfabs/subscriptions","organizations_url":"https://api.github.com/users/capnfabs/orgs","repos_url":"https://api.github.com/users/capnfabs/repos","events_url":"https://api.github.com/users/capnfabs/events{/privacy}","received_events_url":"https://api.github.com/users/capnfabs/received_events","type":"User","site_admin":false},"milestone":null,"comments":14,"created_at":"2016-01-14T00:53:27Z","updated_at":"2016-01-22T04:14:45Z","closed_at":null,"body":"**Update:** looks like what is happening is that it doesn't like empty sections, which are caused by a section beginning with a select_multiple.\r\n\r\n---\r\nWhen I am opening the \"Initial Physical Exam\" form of profile \"nutrition-itfc-101.csv\" the app crashes as it is loading the form.\r\n\r\nThis is the profile that was loaded:\r\nhttps://github.com/projectbuendia/profiles/blob/master/nutrition-itfc-101.csv\r\n\r\nHere is a bug report:\r\nhttps://www.dropbox.com/s/8ay3feu3grezfbs/bugreport-2016-01-14-00-29-13.txt?dl=0\r\n\r\nApp build 900 (revision #3d9fc283d508b936794e50a3dea0f6004ec96e32).\r\n\r\nConnected to dev.projectbuendia.org\r\n\r\nPatient ABC/680 \"Chinasa Tremblay\" in location \"UNTI Soins Intensifs\"."},"comment":{"url":"https://api.github.com/repos/projectbuendia/client/issues/comments/173801745","html_url":"https://github.com/projectbuendia/client/issues/199#issuecomment-173801745","issue_url":"https://api.github.com/repos/projectbuendia/client/issues/199","id":173801745,"user":{"login":"capnfabs","id":1336508,"avatar_url":"https://avatars.githubusercontent.com/u/1336508?v=3","gravatar_id":"","url":"https://api.github.com/users/capnfabs","html_url":"https://github.com/capnfabs","followers_url":"https://api.github.com/users/capnfabs/followers","following_url":"https://api.github.com/users/capnfabs/following{/other_user}","gists_url":"https://api.github.com/users/capnfabs/gists{/gist_id}","starred_url":"https://api.github.com/users/capnfabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capnfabs/subscriptions","organizations_url":"https://api.github.com/users/capnfabs/orgs","repos_url":"https://api.github.com/users/capnfabs/repos","events_url":"https://api.github.com/users/capnfabs/events{/privacy}","received_events_url":"https://api.github.com/users/capnfabs/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T04:14:45Z","updated_at":"2016-01-22T04:14:45Z","body":"Ok, I disabled the recursive \"skip to next field if something goes wrong\" check, and here's the new stack trace I get:\r\n\r\n```\r\n01-22 12:11:16.754 W/System.err(11903): java.lang.NullPointerException: Attempt to invoke virtual method 'int org.javarosa.form.api.FormEntryPrompt.getControlType()' on a null object reference\r\n01-22 12:11:16.754 W/System.err(11903): \tat org.odk.collect.android.widgets2.Widget2Factory.create(Widget2Factory.java:53)\r\n01-22 12:11:16.754 W/System.err(11903): \tat org.odk.collect.android.views.ODKView.<init>(ODKView.java:236)\r\n01-22 12:11:16.754 W/System.err(11903): \tat org.odk.collect.android.activities.FormEntryActivity.createView(FormEntryActivity.java:1444)\r\n01-22 12:11:16.754 W/System.err(11903): \tat org.odk.collect.android.activities.FormEntryActivity.access$700(FormEntryActivity.java:101)\r\n01-22 12:11:16.754 W/System.err(11903): \tat org.odk.collect.android.activities.FormEntryActivity$QuestionHolderFormVisitor.visit(FormEntryActivity.java:692)\r\n01-22 12:11:16.754 W/System.err(11903): \tat org.odk.collect.android.logic.FormTraverser.traverse(FormTraverser.java:29)\r\n01-22 12:11:16.754 W/System.err(11903): \tat org.odk.collect.android.activities.FormEntryActivity.populateViews(FormEntryActivity.java:573)\r\n01-22 12:11:16.754 W/System.err(11903): \tat org.odk.collect.android.activities.FormEntryActivity.loadingComplete(FormEntryActivity.java:2616)\r\n01-22 12:11:16.754 W/System.err(11903): \tat org.odk.collect.android.tasks.FormLoaderTask.onPostExecute(FormLoaderTask.java:535)\r\n01-22 12:11:16.755 W/System.err(11903): \tat org.odk.collect.android.tasks.FormLoaderTask.onPostExecute(FormLoaderTask.java:76)\r\n01-22 12:11:16.755 W/System.err(11903): \tat android.os.AsyncTask.finish(AsyncTask.java:636)\r\n01-22 12:11:16.755 W/System.err(11903): \tat android.os.AsyncTask.access$500(AsyncTask.java:177)\r\n01-22 12:11:16.755 W/System.err(11903): \tat android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)\r\n01-22 12:11:16.755 W/System.err(11903): \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n01-22 12:11:16.755 W/System.err(11903): \tat android.os.Looper.loop(Looper.java:211)\r\n01-22 12:11:16.755 W/System.err(11903): \tat android.app.ActivityThread.main(ActivityThread.java:5373)\r\n01-22 12:11:16.755 W/System.err(11903): \tat java.lang.reflect.Method.invoke(Native Method)\r\n01-22 12:11:16.755 W/System.err(11903): \tat java.lang.reflect.Method.invoke(Method.java:372)\r\n01-22 12:11:16.755 W/System.err(11903): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)\r\n01-22 12:11:16.755 W/System.err(11903): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)\r\n```"}}