Commit efd2f67
Fix crash in RCTExceptionManager (#54550)
Summary:
Pull Request resolved: #54550
# Summary
This diff resolves a crash in RCTExceptionManager by modifying error handling. It fixes the issue by checking if `RCTJSExtraDataKey` and `RCTJSStackTraceKey` are null or not in a dictionary initializer.
Also, `RCTJSExtraDataKey` is marked as nullable but its nullability is not checked.
## Changelog:
[iOS][Fixed] - A Crash when some error information are nil
Reviewed By: javache
Differential Revision: D87140823
fbshipit-source-id: 896d41c5f6559206a6515e402d2a503df6ddb63c1 parent 8b6b47b commit efd2f67
File tree
1 file changed
+5
-2
lines changed- packages/react-native/React/CoreModules
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
0 commit comments