diff --git a/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java b/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java index 55208453fc7..806073ad0dc 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java @@ -24,6 +24,7 @@ import com.facebook.react.R; import com.facebook.react.bridge.Callback; import com.facebook.react.bridge.JSApplicationIllegalArgumentException; import com.facebook.react.bridge.ReactContext; +import com.facebook.react.bridge.ReactSoftException; import com.facebook.react.bridge.ReadableArray; import com.facebook.react.bridge.ReadableMap; import com.facebook.react.bridge.SoftAssertions; @@ -765,8 +766,11 @@ public class NativeViewHierarchyManager { UiThreadUtil.assertOnUiThread(); View view = mTagsToViews.get(reactTag); if (view == null) { - throw new IllegalViewOperationException( - "Trying to send command to a non-existing view " + "with tag " + reactTag); + ReactSoftException.logSoftException( + TAG, + new IllegalViewOperationException( + "Trying to send command to a non-existing view " + "with tag " + reactTag)); + return; } ViewManager viewManager = resolveViewManager(reactTag); @@ -778,8 +782,11 @@ public class NativeViewHierarchyManager { UiThreadUtil.assertOnUiThread(); View view = mTagsToViews.get(reactTag); if (view == null) { - throw new IllegalViewOperationException( - "Trying to send command to a non-existing view " + "with tag " + reactTag); + ReactSoftException.logSoftException( + TAG, + new IllegalViewOperationException( + "Trying to send command to a non-existing view " + "with tag " + reactTag)); + return; } ViewManager viewManager = resolveViewManager(reactTag);