-
Notifications
You must be signed in to change notification settings - Fork 448
Android analytics: Error in firebase.logEvent: Error: java.lang.NullPointerException: null reference #128
Comments
Curious to learn what it is. I can imagine this could happen with 3.6.0, less with 3.6.1. Can you post the snippet that logs the event? |
@EddyVerbruggen occurs after I do this:
^ causes this immediate crash:
|
Hmm, yeah puzzled by this one. Am I missing something obvious? |
Nvm!! Ah... it's |
Just wanted to show you 😉 In your defence it took me a while to choose between those two param names.. |
Well shoot, it's stiiiilll crashing. :( |
Noooooooooo! You áre on 3.6.1, right? |
I am yeah... just Android only. Works fine in iOS... pretty puzzling. |
https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/firebase.android.js#L303
? Unknown Source? |
That has bitten me before in other plugins.. that context.. it seems to get nulled sometimes. Time to investigate! |
It must be the single quotes! |
LOL! right. |
maybe try this: |
Does |
building now... lemme see |
Worked like a charm 👍 |
|
Thanks for looking into it. You may run into a similar issue with other methods as well so I will investigate this further shortly! |
Thanks @EddyVerbruggen yep been bit by similar kind of thing with {N} android projects...Hope similar conditional will help resolve throughout! |
…NullPointerException: null reference
I'm settling on your proposed patch. This {N} issue seems to also advice to use |
…NullPointerException: null reference
app.android.currentContext || app.android.context||app.android.foregroundActivity||utils.ad.getApplicationContext() nothing worked.. |
There are no
null
's being passed in so I'm assuming this is coming from the plugin... will look.The text was updated successfully, but these errors were encountered: