AHilberink Well-Known Member Licensed User Longtime User Apr 15, 2026 #1 Hi, Using crashlitics I got the following message: {"Version":"3.94dg","Error":"java.lang.RuntimeException: Object should first be initialized (List).","Stack":"java.lang.RuntimeException: Object should first be initialized (List)......... Click to expand... What is the easiest way to investigate which list is causing this? I see the name of the sub, but I need to know the list name to check why this happens. Kind regards, André
Hi, Using crashlitics I got the following message: {"Version":"3.94dg","Error":"java.lang.RuntimeException: Object should first be initialized (List).","Stack":"java.lang.RuntimeException: Object should first be initialized (List)......... Click to expand... What is the easiest way to investigate which list is causing this? I see the name of the sub, but I need to know the list name to check why this happens. Kind regards, André
Solution William Lancee Apr 15, 2026 The key lines are: at ciris.chauffeur.opdrachten._doen(opdrachten.java:1597) at ciris.chauffeur.opdrachten._btndoen_click(opdrachten.java:860) They are you original subs. The relative java file is ciris.chauffeur.opdrachten In Object/src/ciris/chauffeur/opdrachten.java go to the line number (actual line number in editor). Just prior to that are comment lines that represent the B4A source file. Look for calls to doen and btndoen. (make sure to look at the files that were used to release the version where the error was found)
The key lines are: at ciris.chauffeur.opdrachten._doen(opdrachten.java:1597) at ciris.chauffeur.opdrachten._btndoen_click(opdrachten.java:860) They are you original subs. The relative java file is ciris.chauffeur.opdrachten In Object/src/ciris/chauffeur/opdrachten.java go to the line number (actual line number in editor). Just prior to that are comment lines that represent the B4A source file. Look for calls to doen and btndoen. (make sure to look at the files that were used to release the version where the error was found)
Sandman Expert Licensed User Longtime User Apr 15, 2026 #2 You don't get the error when you develop? It's only something that your users experience? Upvote 0
DonManfred Expert Licensed User Longtime User Apr 15, 2026 #3 AHilberink said: What is the easiest way to investigate which list is causing this? Click to expand... Look at the sull stacktrace in the crashlytics console. There must be more infos, codefile, linenumbers ect. than just this oneliner Upvote 0
AHilberink said: What is the easiest way to investigate which list is causing this? Click to expand... Look at the sull stacktrace in the crashlytics console. There must be more infos, codefile, linenumbers ect. than just this oneliner
AHilberink Well-Known Member Licensed User Longtime User Apr 15, 2026 #4 Sandman said: You don't get the error when you develop? It's only something that your users experience? Click to expand... This not always happening and not during my development and tests. It has something to do with specific use and I need to know when it happens. That way I can check during development connected to my device. Upvote 0
Sandman said: You don't get the error when you develop? It's only something that your users experience? Click to expand... This not always happening and not during my development and tests. It has something to do with specific use and I need to know when it happens. That way I can check during development connected to my device.
AHilberink Well-Known Member Licensed User Longtime User Apr 15, 2026 #5 DonManfred said: Look at the sull stacktrace in the crashlytics console. There must be more infos, codefile, linenumbers ect. than just this oneliner Click to expand... I just paste the first line, but this is the whole message: {"Version":"3.94dg","Error":"java.lang.RuntimeException: Object should first be initialized (List).","Stack":"java.lang.RuntimeException: Object should first be initialized (List).\n\tat anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:67)\n\tat anywheresoftware.b4a.objects.collections.List.Add(List.java:83)\n\tat ciris.chauffeur.opdrachten._doen(opdrachten.java:1597)\n\tat ciris.chauffeur.opdrachten._btndoen_click(opdrachten.java:860)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)\n\tat anywheresoftware.b4a.BA.raiseEvent2(BA.java:205)\n\tat anywheresoftware.b4a.BA.raiseEvent(BA.java:201)\n\tat anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)\n\tat android.view.View.performClick(View.java:8508)\n\tat android.widget.TextView.performClick(TextView.java:18631)\n\tat android.view.View.performClickInternal(View.java:8485)\n\tat android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)\n\tat android.view.View$PerformClick.run(View.java:33213)\n\tat android.os.Handler.handleCallback(Handler.java:995)\n\tat android.os.Handler.dispatchMessage(Handler.java:103)\n\tat android.os.Looper.loopOnce(Looper.java:273)\n\tat android.os.Looper.loop(Looper.java:363)\n\tat android.app.ActivityThread.main(ActivityThread.java:10060)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)\n"} Click to expand... Upvote 0
DonManfred said: Look at the sull stacktrace in the crashlytics console. There must be more infos, codefile, linenumbers ect. than just this oneliner Click to expand... I just paste the first line, but this is the whole message: {"Version":"3.94dg","Error":"java.lang.RuntimeException: Object should first be initialized (List).","Stack":"java.lang.RuntimeException: Object should first be initialized (List).\n\tat anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:67)\n\tat anywheresoftware.b4a.objects.collections.List.Add(List.java:83)\n\tat ciris.chauffeur.opdrachten._doen(opdrachten.java:1597)\n\tat ciris.chauffeur.opdrachten._btndoen_click(opdrachten.java:860)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat anywheresoftware.b4a.BA.raiseEvent2(BA.java:221)\n\tat anywheresoftware.b4a.BA.raiseEvent2(BA.java:205)\n\tat anywheresoftware.b4a.BA.raiseEvent(BA.java:201)\n\tat anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)\n\tat android.view.View.performClick(View.java:8508)\n\tat android.widget.TextView.performClick(TextView.java:18631)\n\tat android.view.View.performClickInternal(View.java:8485)\n\tat android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)\n\tat android.view.View$PerformClick.run(View.java:33213)\n\tat android.os.Handler.handleCallback(Handler.java:995)\n\tat android.os.Handler.dispatchMessage(Handler.java:103)\n\tat android.os.Looper.loopOnce(Looper.java:273)\n\tat android.os.Looper.loop(Looper.java:363)\n\tat android.app.ActivityThread.main(ActivityThread.java:10060)\n\tat java.lang.reflect.Method.invoke(Native Method)\n\tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:632)\n\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)\n"} Click to expand...
William Lancee Well-Known Member Licensed User Longtime User Apr 15, 2026 #6 The key lines are: at ciris.chauffeur.opdrachten._doen(opdrachten.java:1597) at ciris.chauffeur.opdrachten._btndoen_click(opdrachten.java:860) They are you original subs. The relative java file is ciris.chauffeur.opdrachten In Object/src/ciris/chauffeur/opdrachten.java go to the line number (actual line number in editor). Just prior to that are comment lines that represent the B4A source file. Look for calls to doen and btndoen. (make sure to look at the files that were used to release the version where the error was found) Upvote 0 Solution
The key lines are: at ciris.chauffeur.opdrachten._doen(opdrachten.java:1597) at ciris.chauffeur.opdrachten._btndoen_click(opdrachten.java:860) They are you original subs. The relative java file is ciris.chauffeur.opdrachten In Object/src/ciris/chauffeur/opdrachten.java go to the line number (actual line number in editor). Just prior to that are comment lines that represent the B4A source file. Look for calls to doen and btndoen. (make sure to look at the files that were used to release the version where the error was found)
DonManfred Expert Licensed User Longtime User Apr 15, 2026 #7 check opdrachten.java at lin 1597 it should give you an further idea. Otherwise you need to debug more. add a check for the list being initialized, ect. Upvote 0
check opdrachten.java at lin 1597 it should give you an further idea. Otherwise you need to debug more. add a check for the list being initialized, ect.
Sandman Expert Licensed User Longtime User Apr 15, 2026 #8 And what is the code in the sub mentioned in the message? Upvote 0
AHilberink Well-Known Member Licensed User Longtime User Apr 15, 2026 #9 William Lancee said: The key lines are: at ciris.chauffeur.opdrachten._doen(opdrachten.java:1597) at ciris.chauffeur.opdrachten._btndoen_click(opdrachten.java:860) They are you original subs. The relative java file is ciris.chauffeur.opdrachten In Object/src/ciris/chauffeur/opdrachten.java go to the line number (actual line number in editor). Just prior to that are comment lines that represent the B4A source file. Look for calls to doen and btndoen. (make sure to look at the files that were used to release the version where the error was found) Click to expand... This: In Object/src/ciris/chauffeur/opdrachten.java go to the line number (actual line number in editor). Just prior to that are comment lines that represent the B4A source file. Click to expand... was the part I was looking for. Using this I can look on which part of my code needs attention. Upvote 0
William Lancee said: The key lines are: at ciris.chauffeur.opdrachten._doen(opdrachten.java:1597) at ciris.chauffeur.opdrachten._btndoen_click(opdrachten.java:860) They are you original subs. The relative java file is ciris.chauffeur.opdrachten In Object/src/ciris/chauffeur/opdrachten.java go to the line number (actual line number in editor). Just prior to that are comment lines that represent the B4A source file. Look for calls to doen and btndoen. (make sure to look at the files that were used to release the version where the error was found) Click to expand... This: In Object/src/ciris/chauffeur/opdrachten.java go to the line number (actual line number in editor). Just prior to that are comment lines that represent the B4A source file. Click to expand... was the part I was looking for. Using this I can look on which part of my code needs attention.
AHilberink Well-Known Member Licensed User Longtime User Apr 15, 2026 #10 DonManfred said: check opdrachten.java at line 1597 it should give you an further idea. Otherwise you need to debug more. add a check for the list being initialized, ect. Click to expand... I found the part. I do a this: B4X: Copy Huidigen.Initialize Huidigen=DBUtils.ExecuteList(Main.SQL1,"SELECT Huidige FROM "&Main.DBAanvulling&" WHERE OpdrachtID="&OpdrachtID,Null,0) For i=0 To Huidigen.Size - 1 It seems on DBUtils.ExecuteList the Initialize will be gone after no result or something. I think the Huidigen.Size does the crash because of this. I will do more testing. Upvote 0
DonManfred said: check opdrachten.java at line 1597 it should give you an further idea. Otherwise you need to debug more. add a check for the list being initialized, ect. Click to expand... I found the part. I do a this: B4X: Copy Huidigen.Initialize Huidigen=DBUtils.ExecuteList(Main.SQL1,"SELECT Huidige FROM "&Main.DBAanvulling&" WHERE OpdrachtID="&OpdrachtID,Null,0) For i=0 To Huidigen.Size - 1 It seems on DBUtils.ExecuteList the Initialize will be gone after no result or something. I think the Huidigen.Size does the crash because of this. I will do more testing.
AHilberink Well-Known Member Licensed User Longtime User Apr 15, 2026 #11 Thanks all for helping me out. Upvote 0