-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
java.lang.NullPointerException: Attempt to invoke virtual... #20
Comments
I think it is the same problem as #11. The uploadservice should be exposed in JavaScript at the first place. |
I'm getting this issue with
|
Solved my issue: I was calling the nativescript-background-http code too early in the app's execution (in |
Hi @Pistos, I'm getting the same error when I'm calling background-http from within a jasmine test. Any pointers on what I might need to do to initialise the android context (or whatever) to get past this? |
@geoffbullen Sorry, I don't have test coverage of this same code, so I don't have experience that could help you. |
Thanks anyhow @Pistos :-) |
After getting rid of "Cannot read property 'uploadservice' of undefined" error I came across following error which is related to:
Attempt to invoke virtual method 'android.content.Intent android.content.text.registerReceiver(anroid.content.BroadcastReceiver, anroid.content.IntentFilter)' on null object reference com.alexbbb.uploadservice.AbstractUploadServiceReceiver.register... and so on...
Any ideas?
I have tried to delete platform via console and by hand, building, running multiple times. The usual stuff.
I'm using newest NativeScript and Android
The text was updated successfully, but these errors were encountered: