Crash sur l'affichage Oursin violet
avec la version 4.9.0
l'ouverture de la fiche: Oursin violet déclenche un crash de l'application
02-12 12:41:20.065 D/fr.ffessm.doris.android.activities.DetailsFiche_ElementViewActivity(11307): addFoldableView() - titre : Autres d\u00e9nominations
02-12 12:41:20.065 D/fr.ffessm.doris.android.activities.DetailsFiche_ElementViewActivity(11307): addFoldableView() - text : Oursin \u00e9mouss\u00e9, oursin violet, oursin bleu, oursin \u00e0 pointes blanches, savonnette, lampion, oursin lampion
02-12 12:41:20.065 D/fr.ffessm.doris.android.activities.DetailsFiche_ElementViewActivity(11307): Violet sea urchin (GB), Erizo violaceo, erizo de mar violetta, carotta violetta, ourizo, itsas triku bioletta (E), Violetter Seeigel (D), Paarse zee-egal (NL), Ouri\u00e7o-do-mar violeta (P)
02-12 12:41:20.069 W/Groupe (11307): Groupe may not be properly refreshed from DB (_id=93)
02-12 12:41:20.069 W/Groupe (11307): getGroupePere() - groupePere.id=93)
02-12 12:41:20.069 W/Groupe (11307): getGroupePere() - groupePere.numeroGroupe=48947)
02-12 12:41:20.069 W/Groupe (11307): getGroupePere() - groupePere.nomGroupe=Oursins r\u00e9guliers)
02-12 12:41:20.070 D/AndroidRuntime(11307): Shutting down VM
--------- beginning of crash
02-12 12:41:20.070 E/AndroidRuntime(11307): FATAL EXCEPTION: main
02-12 12:41:20.070 E/AndroidRuntime(11307): Process: fr.ffessm.doris.android, PID: 11307
02-12 12:41:20.070 E/AndroidRuntime(11307): 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 'int fr.ffessm.doris.android.datamodel.Groupe.getId()' on a null object reference
02-12 12:41:20.070 E/AndroidRuntime(11307): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4631)
02-12 12:41:20.070 E/AndroidRuntime(11307): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4663)
02-12 12:41:20.070 E/AndroidRuntime(11307): at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
02-12 12:41:20.070 E/AndroidRuntime(11307): at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
02-12 12:41:20.070 E/AndroidRuntime(11307): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
02-12 12:41:20.070 E/AndroidRuntime(11307): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2246)
02-12 12:41:20.070 E/AndroidRuntime(11307): at android.os.Handler.dispatchMessage(Handler.java:106)
02-12 12:41:20.070 E/AndroidRuntime(11307): at android.os.Looper.loop(Looper.java:233)
02-12 12:41:20.070 E/AndroidRuntime(11307): at android.app.ActivityThread.main(ActivityThread.java:8010)
02-12 12:41:20.070 E/AndroidRuntime(11307): at java.lang.reflect.Method.invoke(Native Method)
02-12 12:41:20.070 E/AndroidRuntime(11307): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
02-12 12:41:20.070 E/AndroidRuntime(11307): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
02-12 12:41:20.070 E/AndroidRuntime(11307): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int fr.ffessm.doris.android.datamodel.Groupe.getId()' on a null object reference
02-12 12:41:20.070 E/AndroidRuntime(11307): at fr.ffessm.doris.android.activities.DetailsFiche_ElementViewActivity.addFoldableGroupeView(DetailsFiche_ElementViewActivity.java:638)
02-12 12:41:20.070 E/AndroidRuntime(11307): at fr.ffessm.doris.android.activities.DetailsFiche_ElementViewActivity.refreshScreenData(DetailsFiche_ElementViewActivity.java:336)
02-12 12:41:20.070 E/AndroidRuntime(11307): at fr.ffessm.doris.android.activities.DetailsFiche_ElementViewActivity.onResume(DetailsFiche_ElementViewActivity.java:211)
02-12 12:41:20.070 E/AndroidRuntime(11307): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1571)
02-12 12:41:20.070 E/AndroidRuntime(11307): at android.app.Activity.performResume(Activity.java:8141)
02-12 12:41:20.070 E/AndroidRuntime(11307): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4621)
02-12 12:41:20.070 E/AndroidRuntime(11307): ... 11 more
02-12 12:41:20.070 E/ACRA (11307): ACRA caught a RuntimeException for fr.ffessm.doris.android
02-12 12:41:20.070 E/ACRA (11307): 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 'int fr.ffessm.doris.android.datamodel.Groupe.getId()' on a null object reference
02-12 12:41:20.070 E/ACRA (11307): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4631)
02-12 12:41:20.070 E/ACRA (11307): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4663)
02-12 12:41:20.070 E/ACRA (11307): at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
02-12 12:41:20.070 E/ACRA (11307): at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
02-12 12:41:20.070 E/ACRA (11307): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
02-12 12:41:20.070 E/ACRA (11307): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2246)
02-12 12:41:20.070 E/ACRA (11307): at android.os.Handler.dispatchMessage(Handler.java:106)
02-12 12:41:20.070 E/ACRA (11307): at android.os.Looper.loop(Looper.java:233)
02-12 12:41:20.070 E/ACRA (11307): at android.app.ActivityThread.main(ActivityThread.java:8010)
02-12 12:41:20.070 E/ACRA (11307): at java.lang.reflect.Method.invoke(Native Method)
02-12 12:41:20.070 E/ACRA (11307): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
02-12 12:41:20.070 E/ACRA (11307): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)
02-12 12:41:20.070 E/ACRA (11307): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int fr.ffessm.doris.android.datamodel.Groupe.getId()' on a null object reference
02-12 12:41:20.070 E/ACRA (11307): at fr.ffessm.doris.android.activities.DetailsFiche_ElementViewActivity.addFoldableGroupeView(DetailsFiche_ElementViewActivity.java:638)
02-12 12:41:20.070 E/ACRA (11307): at fr.ffessm.doris.android.activities.DetailsFiche_ElementViewActivity.refreshScreenData(DetailsFiche_ElementViewActivity.java:336)
02-12 12:41:20.070 E/ACRA (11307): at fr.ffessm.doris.android.activities.DetailsFiche_ElementViewActivity.onResume(DetailsFiche_ElementViewActivity.java:211)
02-12 12:41:20.070 E/ACRA (11307): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1571)
02-12 12:41:20.070 E/ACRA (11307): at android.app.Activity.performResume(Activity.java:8141)
02-12 12:41:20.070 E/ACRA (11307): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4621)
(probablement un problème lié avec les groupes non correctement récupérés/synchronisés avec le site et en attente d'une action du webmaster :-( )
en attendant un patch sur la base de donnée serai la bienvenue
Edited by Vojtisek Didier