Skip to content

Fix -Wnullable-to-nonnull-conversion for Xcode 26.4 (#56518)#56518

Closed
fkgozali wants to merge 1 commit into
react:mainfrom
fkgozali:export-D101668743
Closed

Fix -Wnullable-to-nonnull-conversion for Xcode 26.4 (#56518)#56518
fkgozali wants to merge 1 commit into
react:mainfrom
fkgozali:export-D101668743

Conversation

@fkgozali

@fkgozali fkgozali commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Summary:

The fix adds null-coalescing fallbacks (?: "") for UTF8String calls that return const char * _Nullable but are passed to std::string constructors or C++ functions expecting const char * _Nonnull.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D101668743

@meta-codesync

meta-codesync Bot commented Apr 20, 2026

Copy link
Copy Markdown

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

@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 Apr 20, 2026
@meta-codesync meta-codesync Bot changed the title Fix -Wnullable-to-nonnull-conversion for Xcode 26.4 Fix -Wnullable-to-nonnull-conversion for Xcode 26.4 (#56518) Apr 20, 2026
@fkgozali fkgozali force-pushed the export-D101668743 branch from 27401dc to f253c7d Compare April 20, 2026 19:09
Summary:
Pull Request resolved: #56518

The fix adds null-coalescing fallbacks (`?: ""`) for UTF8String calls that return `const char * _Nullable` but are passed to `std::string` constructors or C++ functions expecting `const char * _Nonnull`.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D101668743
@fkgozali fkgozali force-pushed the export-D101668743 branch from f253c7d to 0394b14 Compare April 20, 2026 19:13
@meta-codesync meta-codesync Bot closed this in b2aa694 Apr 21, 2026
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @fkgozali in b2aa694

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Apr 21, 2026
@meta-codesync

meta-codesync Bot commented Apr 21, 2026

Copy link
Copy Markdown

This pull request has been merged in b2aa694.

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 Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants