Skip to content

Add null check for ViewState in SurfaceMountingManager::updateProps#56147

Closed
bartlomiejbloniarz wants to merge 1 commit intomainfrom
export-D97087668
Closed

Add null check for ViewState in SurfaceMountingManager::updateProps#56147
bartlomiejbloniarz wants to merge 1 commit intomainfrom
export-D97087668

Conversation

@bartlomiejbloniarz
Copy link
Contributor

Summary:
I saw that in D95793355 a null check was added for the view state in updateLayout. A similar issue can happen (and has been happening with Reanimated) with the updateProps method, so this diff makes it consistent with the other codepaths.

Changelog:

[General] [Changed] - use getNullableViewState in SurfaceMountingManager::updateProps and log a soft exception instead

Differential Revision: D97087668

Summary:
I saw that in D95793355 a null check was added for the view state in updateLayout. A similar issue can happen (and has been happening with Reanimated) with the updateProps method, so this diff makes it consistent with the other codepaths.

## Changelog:
[General] [Changed] - use getNullableViewState in SurfaceMountingManager::updateProps and log a soft exception instead

Differential Revision: D97087668
@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 19, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 19, 2026

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

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by Bartlomiej Bloniarz in bbf7004

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 Mar 19, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 19, 2026

This pull request has been merged in bbf7004.

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 p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants