Commit 4db3ca8
Fix UnsafeDereference: Replace !! with requireNotNull (#55356)
Summary:
Pull Request resolved: #55356
Fixed UnsafeDereference lint errors in BridgelessCatalystInstance.kt.
Replaced unsafe !! operator with requireNotNull() for:
- javaScriptContextHolder
- jsCallInvokerHolder
- reactQueueConfiguration
This provides better error messages when null values are encountered.
changelog: [internal] internal
Reviewed By: alanleedev
Differential Revision: D91731458
fbshipit-source-id: f52f57bb9978c199caf838fcc7467bc43bed49ce1 parent 285125c commit 4db3ca8
1 file changed
Lines changed: 9 additions & 3 deletions
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
106 | | - | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
127 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
128 | 134 | | |
129 | 135 | | |
130 | 136 | | |
| |||
0 commit comments