Commit 1b7efce
authored
fix(UBSAN): ensure
## Summary:
Internally, we build with
[UndefinedBehaviorSanitizer](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html),
which caught an instance of a method returning nil while marked as non
null. Apple documentation says that method should return an empty array
as a fallback, so let's do that.
## Test Plan:
Tested internally.[RCTUITextField validAttributesForMarkedText] Is non null (#2515)1 parent e1ded73 commit 1b7efce
File tree
1 file changed
+1
-1
lines changed- packages/react-native/Libraries/Text/TextInput/Singleline
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
0 commit comments