Commit bbf7004
Add null check for ViewState in SurfaceMountingManager::updateProps (#56147)
Summary:
Pull Request resolved: #56147
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
Reviewed By: javache
Differential Revision: D97087668
fbshipit-source-id: e69da89e2f0277714d242ed6ef5c9050cdc03dbc1 parent 1fdd167 commit bbf7004
1 file changed
Lines changed: 9 additions & 2 deletions
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
611 | | - | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
612 | 619 | | |
613 | 620 | | |
614 | 621 | | |
| |||
624 | 631 | | |
625 | 632 | | |
626 | 633 | | |
627 | | - | |
| 634 | + | |
628 | 635 | | |
629 | 636 | | |
630 | 637 | | |
| |||
0 commit comments