It is because you use Main.prot in the catch.
Try to change it to "log(Main.prot.get(0))".
I can't try because I have an older version of b4a.
Thank you, does not work.
The same code works in another app - no idea why.
I found out what it was - variable defined as process_globals AND globals. Stupid me.