diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridgeless/ReactInstance.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridgeless/ReactInstance.java index 4f111194952023..cdea79ae8c585c 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridgeless/ReactInstance.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridgeless/ReactInstance.java @@ -26,6 +26,7 @@ import com.facebook.react.bridge.NativeArray; import com.facebook.react.bridge.NativeMap; import com.facebook.react.bridge.NativeModule; +import com.facebook.react.bridge.ReactNoCrashSoftException; import com.facebook.react.bridge.ReactSoftExceptionLogger; import com.facebook.react.bridge.RuntimeExecutor; import com.facebook.react.bridge.RuntimeScheduler; @@ -467,7 +468,7 @@ public void handleMemoryPressure(int level) { } catch (NullPointerException e) { ReactSoftExceptionLogger.logSoftException( TAG, - new IllegalViewOperationException( + new ReactNoCrashSoftException( "Native method handleMemoryPressureJs is called earlier than librninstance.so got ready.")); } }