diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java index 090b55f59ee129..983526a5e36f61 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactDelegate.java @@ -319,7 +319,11 @@ public void unloadApp() { @Nullable public ReactRootView getReactRootView() { if (ReactNativeFeatureFlags.enableBridgelessArchitecture()) { - return (ReactRootView) mReactSurface.getView(); + if (mReactSurface != null) { + return (ReactRootView) mReactSurface.getView(); + } else { + return null; + } } else { return mReactRootView; }