- Notifications
You must be signed in to change notification settings - Fork1
fix: NPE during error reporting#186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
The try/catch block raised NPE in the `notify` if another exception was raisedafter the context containing the URL was reset - so that means an error in the onConnecthandler. In addition, some of the reset steps were moved after onConnect to make sure theyexecute only if onConnect callback is successful.Because of the fault in how the steps were arranged, the original exception was never loggedinstead a misleading NPE was treated by the coroutine's exception handler.
I'm putting this on draft because when I tried to test a scenario where onConnect raised an exception Toolbox refused to show the snackbar with the error requested by the |
a68ab3a
intomainUh oh!
There was an error while loading.Please reload this page.
The try/catch block raised NPE in the
notify
if another exception was raised after the context containing the URL was reset - so that means an error in the onConnect handler. In addition, some of the reset steps were moved after onConnect to make sure they execute only if onConnect callback is successful.Because of the fault in how the steps were arranged, the original exception was never logged instead a misleading NPE was treated by the coroutine's exception handler.