Crash vue détails sur anémone de Biscaye
"APP_VERSION_CODE": 67, "APP_VERSION_NAME": "4.6",
Lorsque l'on souhaite afficher les détails de la fiche 2656 (Anémone de Biscaye) on obtient le crash suivant:
java.lang.RuntimeException: Unable to resume activity {fr.ffessm.doris.android/fr.ffessm.doris.android.activities.DetailsFiche_ElementViewActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void fr.ffessm.doris.android.datamodel.Participant.setContextDB(fr.ffessm.doris.android.datamodel.DorisDBHelper)' on a null object reference
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4290)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4330)
at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2123)
at android.os.Handler.dispatchMessage(Handler.java:109)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:7470)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void fr.ffessm.doris.android.datamodel.Participant.setContextDB(fr.ffessm.doris.android.datamodel.DorisDBHelper)' on a null object reference
at fr.ffessm.doris.android.activities.DetailsFiche_ElementViewActivity.refreshScreenData(DetailsFiche_ElementViewActivity.java:386)
at fr.ffessm.doris.android.activities.DetailsFiche_ElementViewActivity.onResume(DetailsFiche_ElementViewActivity.java:207)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1456)
at android.app.Activity.performResume(Activity.java:7592)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4272)
La fiche étant en cours de préparation, il est possible que les champs ne soient pas tous renseignés de manière cohérente.
Edited by Vojtisek Didier