I have the code here which works most of the time. On occasion, if it is called more than once in an application, it will crash with the error Session did end with error (null) right after the "execute transaction" debugging line and before any of the debugging in either the handleLoginLoad()
or handleLoginError()
functions.
This looks like something inside client.send()
, but I have no idea how I can track it down further or if there is something I might be doing wrong in setting up the callbacks.