Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit a0e21d9

Browse files
bsneedBrandon Sneed
and
Brandon Sneed
authored
fix(android): fix crash when promise resolves in debug mode (segmentio#267)
* fix(android): fix crash when promise resolves in debug mode * fix(ci): update config.yml Co-authored-by: Brandon Sneed <[email protected]>
1 parent 6a2a93b commit a0e21d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/android/src/main/java/com/segment/analytics/reactnative/core/RNAnalyticsModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class RNAnalyticsModule(context: ReactApplicationContext): ReactContextBaseJavaM
112112
}
113113
else {
114114
if (BuildConfig.DEBUG) {
115-
return promise.resolve(this)
115+
return promise.resolve(null)
116116
}
117117
else {
118118
return promise.reject("E_SEGMENT_RECONFIGURED", "Segment Analytics Client was allocated multiple times, please check your environment.")

0 commit comments

Comments
 (0)