Skip to content

Commit

Permalink
fix(android): fix crash when promise resolves in debug mode (#267)
Browse files Browse the repository at this point in the history
* fix(android): fix crash when promise resolves in debug mode

* fix(ci): update config.yml

Co-authored-by: Brandon Sneed <brandon.sneed@segment.com>
  • Loading branch information
bsneed and Brandon Sneed authored Feb 8, 2021
1 parent 6a2a93b commit a0e21d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class RNAnalyticsModule(context: ReactApplicationContext): ReactContextBaseJavaM
}
else {
if (BuildConfig.DEBUG) {
return promise.resolve(this)
return promise.resolve(null)
}
else {
return promise.reject("E_SEGMENT_RECONFIGURED", "Segment Analytics Client was allocated multiple times, please check your environment.")
Expand Down

0 comments on commit a0e21d9

Please sign in to comment.