That's a race condition.
Notice that the error methods are called off the EDT so you need to use
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.