Skip to content

Commit a18a69a

Browse files
authored
fix(android): fix type mismatch DeveloperSettings? vs DeveloperSettings (#1967)
1 parent f488d8f commit a18a69a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

android/app/src/main/java/com/microsoft/reacttestapp/react/TestAppReactNativeHost.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,11 @@ class TestAppReactNativeHost(
190190
val latch = CountDownLatch(1)
191191
var packagerIsRunning = false
192192

193-
val devSettings = reactInstanceManager.devSupportManager.devSettings
194-
createDevServerHelper(context, devSettings).isPackagerRunning {
195-
packagerIsRunning = it
196-
latch.countDown()
193+
reactInstanceManager.devSupportManager.devSettings?.let { devSettings ->
194+
createDevServerHelper(context, devSettings).isPackagerRunning {
195+
packagerIsRunning = it
196+
latch.countDown()
197+
}
197198
}
198199

199200
latch.await()

0 commit comments

Comments
 (0)