Skip to content

NullPointerException when call Driver().getRemote() in AsyncTask ! #2

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
saruno opened this issue Mar 11, 2015 · 1 comment
Open

Comments

@saruno
Copy link

saruno commented Mar 11, 2015

Hi Gitana,

I use gitana-java-driver to developer my app on Android. I init Gitana and Authenticate successfully. But when i query node data in AsyncTask i got an exception : NullPointerException when call getDriver().getRemote()

Please help me to fix it !

@ranoble
Copy link

ranoble commented Jun 15, 2016

The Driver is set as ThreadLocal, you'll need to run the call in the same thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants