Android Question Empty B4XTable Crash

amidgeha

Active Member
Licensed User
Longtime User
I created an empty B4xTable, the CellClicked is not fired and the application get crashed with the following error:

b4xtable$ResumableSub_CellClickedresume (java line: 413)
java.lang.IndexOutOfBoundsException: Invalid index 3, size is 0
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.get(ArrayList.java:308)
 
Last edited:

amidgeha

Active Member
Licensed User
Longtime User
This is what I did:
B4X:
    MacColumn = B4XTable1.AddColumn("MAC Address", B4XTable1.COLUMN_TYPE_TEXT)
    CompanyColumn = B4XTable1.AddColumn("Company", B4XTable1.COLUMN_TYPE_TEXT)
    TheAddress = B4XTable1.AddColumn("Address", B4XTable1.COLUMN_TYPE_TEXT)
    B4XTable1.Refresh
No data populated.
If I add one row, things will be fine and the CellClicked event will fire.
 
Upvote 0
Top