Skip to content

Commit

Permalink
ReactEventEmitter null fix
Browse files Browse the repository at this point in the history
Summary:
Lint fix - flip to a guaranteed non-null value instead of the nullable field

Changelog: [Internal]

Differential Revision: D56898951
  • Loading branch information
Thomas Nardone authored and facebook-github-bot committed May 2, 2024
1 parent bd4d012 commit 1a438ac
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,11 @@ public void receiveEvent(
customCoalesceKey,
event,
category);
} else if (uiManagerType == UIManagerType.DEFAULT && getDefaultEventEmitter() != null) {
mDefaultEventEmitter.receiveEvent(targetReactTag, eventName, event);
} else if (uiManagerType == UIManagerType.DEFAULT) {
RCTEventEmitter defaultEmitter = getDefaultEventEmitter();
if (defaultEmitter != null) {
defaultEmitter.receiveEvent(targetReactTag, eventName, event);
}
} else {
ReactSoftExceptionLogger.logSoftException(
TAG,
Expand Down

0 comments on commit 1a438ac

Please sign in to comment.