Select list item: List index too large

I'm running my app all fine but when I go to check alerts I get this error: 'Select list item: List index too large' with a description saying: 'Select list item: Attempt to get item number 1 of a list of length 0: [' ']' (without the '') Is there any solution to fix this?

It seems to only happen if the list is empty...

There seems to be a conflict in the expectations of different parts of your code as to whether or not that list should or might be empty.

If it's okay for that list to be empty, then your code should not be blindly asking for items from it.

That means adding extra Is List Empty if/then tests around your Select Item From List blocks, with Notifiers if needed.

If that doesn't help,
(Canned Reply: ABG - Download those blocks and post them here)

Please download and post each of those event block(s)/procedures here ...
P.S. These blocks can be dragged directly into your Blocks Editor workspace.

See Download Block Images for a demo.

...

1 Like

Well you have your answer.

Either:

  • don't call the list if it is empty
    or
  • don't have an empty list
1 Like

I somehow found out how to fix it. (I have no idea how I even did it)

That sounds ominous.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.