opensrp / opensrp-client-goldsmith

0 stars 0 forks source link

Fix crash on map when no tasks #78

Open ekigamba opened 3 years ago

ekigamba commented 3 years ago
2021-02-17 18:23:41.072 24272-24272/org.smartregister.goldsmith E/AndroidRuntime: FATAL EXCEPTION: main
    Process: org.smartregister.goldsmith, PID: 24272
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.get(ArrayList.java:437)
        at org.smartregister.tasking.activity.TaskingHomeActivity.setGeoJsonSource(TaskingHomeActivity.java:524)
        at org.smartregister.tasking.presenter.TaskingHomePresenter.onStructuresFetched(TaskingHomePresenter.java:210)
        at org.smartregister.tasking.interactor.TaskingHomeInteractor$1$1.run(TaskingHomeInteractor.java:120)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6669)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)