Skip to content

fix(android): create variable again#15

Open
m1ga wants to merge 1 commit into
masterfrom
androidMetrics
Open

fix(android): create variable again#15
m1ga wants to merge 1 commit into
masterfrom
androidMetrics

Conversation

@m1ga

@m1ga m1ga commented Oct 26, 2022

Copy link
Copy Markdown
Collaborator

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