Commit 2cb1445
Fix UnsafeDereference: Replace !! with requireNotNull
Summary:
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: D917314581 parent 9f3ae8b commit 2cb1445
File tree
1 file changed
+9
-3
lines changed- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime
1 file changed
+9
-3
lines changedLines 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