The apps getting forced close on Symptom and History form, steps to reproduce the behavior:
Go to patient profile page by clicking one of the clients on the register page
Click on Symptom and History form button
Fill in all information on preexisting condition, sign & symptom, travel and contact exposure page
Click back button until you get on the preexisting condition page
Click continue until you get on the travel and contact exposure page
The apps getting forced close
Device: Samsung J5 Android 9
Error log:
2021-06-07 08:54:55.977 18251-18251/io.ona.diagnostics.rdt.configurable.id E/JsonFormInteractor: java.lang.NullPointerException: Attempt to invoke virtual method 'org.json.JSONArray org.json.JSONObject.getJSONArray(java.lang.String)' on a null object reference
at com.vijay.jsonwizard.activities.JsonFormActivity.checkBoxWriteValue(JsonFormActivity.java:1004)
at com.vijay.jsonwizard.activities.JsonFormActivity.writeValue(JsonFormActivity.java:189)
at com.vijay.jsonwizard.fragments.JsonFormFragment.writeValue(JsonFormFragment.java:549)
at com.vijay.jsonwizard.presenters.JsonFormFragmentPresenter.onCheckedChanged(JsonFormFragmentPresenter.java:1015)
at com.vijay.jsonwizard.fragments.JsonFormFragment.onCheckedChanged(JsonFormFragment.java:741)
at android.widget.CompoundButton.setChecked(CompoundButton.java:182)
at com.vijay.jsonwizard.widgets.CheckBoxFactory.addCheckBoxOptionsElements(CheckBoxFactory.java:209)
at com.vijay.jsonwizard.widgets.CheckBoxFactory.attachJson(CheckBoxFactory.java:123)
at com.vijay.jsonwizard.widgets.CheckBoxFactory.getViewsFromJson(CheckBoxFactory.java:78)
at com.vijay.jsonwizard.interactors.JsonFormInteractor.fetchViews(JsonFormInteractor.java:223)
at com.vijay.jsonwizard.interactors.JsonFormInteractor.fetchFields(JsonFormInteractor.java:209)
at com.vijay.jsonwizard.interactors.JsonFormInteractor.fetchFormElements(JsonFormInteractor.java:163)
at com.vijay.jsonwizard.presenters.JsonFormFragmentPresenter.executeRefreshLogicForNextStep(JsonFormFragmentPresenter.java:497)
at com.vijay.jsonwizard.presenters.JsonFormFragmentPresenter.onNextClick(JsonFormFragmentPresenter.java:366)
at com.vijay.jsonwizard.fragments.JsonFormFragment.next(JsonFormFragment.java:422)
at io.ona.rdt.fragment.RDTJsonFormFragment.navigateToNextStep(RDTJsonFormFragment.java:129)
at io.ona.rdt.presenter.RDTJsonFormFragmentPresenter.submitOrMoveToNextStep(RDTJsonFormFragmentPresenter.java:121)
at io.ona.rdt.fragment.RDTJsonFormFragment.lambda$initializeBottomNavigation$1$RDTJsonFormFragment(RDTJsonFormFragment.java:93)
at io.ona.rdt.fragment.-$$Lambda$RDTJsonFormFragment$dParRNOd4yOYDY9L1cOdbfhrDV0.onClick(Unknown Source:4)
at android.view.View.performClick(View.java:7357)
at android.widget.TextView.performClick(TextView.java:14263)
at android.view.View.performClickInternal(View.java:7323)
at android.view.View.access$3200(View.java:849)
at android.view.View$PerformClick.run(View.java:27895)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7266)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
2021-06-07 08:54:56.365 18251-18251/io.ona.diagnostics.rdt.configurable.id E/AndroidRuntime: FATAL EXCEPTION: main
Process: io.ona.diagnostics.rdt.configurable.id, PID: 18251
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=9388, result=8037, data=Intent { (has extras) }} to activity {io.ona.diagnostics.rdt.configurable.id/io.ona.rdt.activity.CovidPatientProfileActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'org.json.JSONArray org.json.JSONObject.getJSONArray(java.lang.String)' on a null object reference
at android.app.ActivityThread.deliverResults(ActivityThread.java:4710)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4752)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:49)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1993)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7266)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'org.json.JSONArray org.json.JSONObject.getJSONArray(java.lang.String)' on a null object reference
at com.vijay.jsonwizard.activities.JsonFormActivity.checkBoxWriteValue(JsonFormActivity.java:1004)
at com.vijay.jsonwizard.activities.JsonFormActivity.writeValue(JsonFormActivity.java:189)
at com.vijay.jsonwizard.fragments.JsonFormFragment.writeValue(JsonFormFragment.java:549)
at com.vijay.jsonwizard.presenters.JsonFormFragmentPresenter.onCheckedChanged(JsonFormFragmentPresenter.java:1015)
at com.vijay.jsonwizard.fragments.JsonFormFragment.onCheckedChanged(JsonFormFragment.java:741)
at android.widget.CompoundButton.setChecked(CompoundButton.java:182)
at com.vijay.jsonwizard.widgets.CheckBoxFactory.addCheckBoxOptionsElements(CheckBoxFactory.java:209)
at com.vijay.jsonwizard.widgets.CheckBoxFactory.attachJson(CheckBoxFactory.java:123)
at com.vijay.jsonwizard.widgets.CheckBoxFactory.getViewsFromJson(CheckBoxFactory.java:78)
at com.vijay.jsonwizard.interactors.JsonFormInteractor.fetchViews(JsonFormInteractor.java:223)
at com.vijay.jsonwizard.interactors.JsonFormInteractor.fetchFields(JsonFormInteractor.java:209)
at com.vijay.jsonwizard.interactors.JsonFormInteractor.fetchFormElements(JsonFormInteractor.java:163)
at com.vijay.jsonwizard.presenters.JsonFormFragmentPresenter.executeRefreshLogicForNextStep(JsonFormFragmentPresenter.java:497)
at com.vijay.jsonwizard.presenters.JsonFormFragmentPresenter.onNextClick(JsonFormFragmentPresenter.java:366)
at com.vijay.jsonwizard.fragments.JsonFormFragment.next(JsonFormFragment.java:422)
at io.ona.rdt.fragment.RDTJsonFormFragment.navigateToNextStep(RDTJsonFormFragment.java:129)
at io.ona.rdt.presenter.RDTJsonFormFragmentPresenter.submitOrMoveToNextStep(RDTJsonFormFragmentPresenter.java:121)
at io.ona.rdt.fragment.RDTJsonFormFragment.lambda$initializeBottomNavigation$1$RDTJsonFormFragment(RDTJsonFormFragment.java:93)
at io.ona.rdt.fragment.-$$Lambda$RDTJsonFormFragment$dParRNOd4yOYDY9L1cOdbfhrDV0.onClick(Unknown Source:4)
at android.view.View.performClick(View.java:7357)
at android.widget.TextView.performClick(TextView.java:14263)
at android.view.View.performClickInternal(View.java:7323)
at android.view.View.access$3200(View.java:849)
at android.view.View$PerformClick.run(View.java:27895)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7266)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
The apps getting forced close on Symptom and History form, steps to reproduce the behavior:
Device: Samsung J5 Android 9
Error log: