Skip to content
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

fix(android): create variable again #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix(android): create variable again #15

wants to merge 1 commit into from

Conversation

m1ga
Copy link
Collaborator

@m1ga m1ga commented Oct 26, 2022

Was testing an app with don't keep activities and I had an error in this module at

https://github.com/hansemannn/titanium-firebase-performance/blob/master/android/src/firebase/performance/TitaniumFirebasePerformanceModule.java#L75

Uncaught Error: Attempt to invoke interface method 'java.lang.Object java.util.Map.put(java.lang.Object, java.lang.Object)' on a null object reference

The fix was to check if it is null (because it was destroyed in a previous window) and reinitialize the variable again.

Test version:
firebase.performance-android-2.1.3.zip

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

Successfully merging this pull request may close these issues.

1 participant