Skip to content

Fix nullability in ObjC TurboModule setEventEmitterCallback (#56226)#56226

Open
christophpurrer wants to merge 1 commit intofacebook:mainfrom
christophpurrer:export-D98263404
Open

Fix nullability in ObjC TurboModule setEventEmitterCallback (#56226)#56226
christophpurrer wants to merge 1 commit intofacebook:mainfrom
christophpurrer:export-D98263404

Conversation

@christophpurrer
Copy link
Contributor

@christophpurrer christophpurrer commented Mar 26, 2026

Summary:

Changelog: [Internal]

Must be NonNull otherwise this code crashes

- (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *_Nonnull)eventEmitterCallbackWrapper
{
  _eventEmitterCallback = std::move(eventEmitterCallbackWrapper->_eventEmitterCallback);
}

Differential Revision: D98263404

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 26, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 26, 2026

@christophpurrer has exported this pull request. If you are a Meta employee, you can view the originating Diff in D98263404.

…#56226)

Summary:

Changelog: [Internal]

Must be `NonNull` otherwise this code crashes

```
- (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *_Nonnull)eventEmitterCallbackWrapper
{
  _eventEmitterCallback = std::move(eventEmitterCallbackWrapper->_eventEmitterCallback);
}
```

Differential Revision: D98263404
@meta-codesync meta-codesync bot changed the title Fix nullability in ObjC TurboModule setEventEmitterCallback Fix nullability in ObjC TurboModule setEventEmitterCallback (#56226) Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant