Android Question CLVExample - RuntimeException "java.lang.RuntimeException: Object should first be initialized (B4XView)."

tfcroft4

Member
Custom List View seems to be a suitable framework for my project.
As a first step I downloaded and tested the CLVExample and get the following error in Debug mode,
B4X:
Error occurred on line: 267 (DDD)
java.lang.RuntimeException: Object should first be initialized (B4XView).
The application continues and behaves as expected. Two different CLVs one with text and the other with.
Even though the application runs a RunTime excpetion is a bit worrying.

Should I worry?

Ted
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
DDD is a utility that isn't strictly related to CLV. It is used in the example to simplify the access to the CLV items. For DDD to work, in this use case, you need two things:

1. A call in the designer script (inside the visual designer):
B4X:
DDD.CollectViewsData

2. And in your code:
B4X:
xui.RegisterDesignerClass(dd)
The example should have these calls.
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Please post your project if possible, so it will be easier to check and correct and explain what was wrong.
 
Upvote 0
Top