Skip to content

fix: null shadow color crash#2672

Merged
Saadnajmi merged 1 commit intomicrosoft:mainfrom
gabrieldonadel:@gabrieldonadel/fix-shadow-color
Sep 5, 2025
Merged

fix: null shadow color crash#2672
Saadnajmi merged 1 commit intomicrosoft:mainfrom
gabrieldonadel:@gabrieldonadel/fix-shadow-color

Conversation

@gabrieldonadel
Copy link
Copy Markdown

Summary:

When updating RCTView in #2642, we end up slightly changing the behavior when didUpdateShadow is called, causing transparent shadows to crash the app. This breakage occurs because NSColor colorWithCGColor: doesn’t accept a NULL CGColorRef; instead, it raises an exception rather than gracefully returning nil.

image

Test Plan:

Run RNTester

@Saadnajmi
Copy link
Copy Markdown
Collaborator

This time the Lint PR title failure is accurate :D

@gabrieldonadel gabrieldonadel changed the title Fix null shadow color crash fix: null shadow color crash Sep 4, 2025
@gabrieldonadel
Copy link
Copy Markdown
Author

This time the Lint PR title failure is accurate :D

Ohh my bad, updated

@Saadnajmi Saadnajmi enabled auto-merge (squash) September 4, 2025 20:48
@Saadnajmi Saadnajmi disabled auto-merge September 5, 2025 18:06
@Saadnajmi Saadnajmi merged commit d30f249 into microsoft:main Sep 5, 2025
38 of 39 checks passed
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/fix-shadow-color branch September 5, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants