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 f5953bacdc45b5..d42e865913baaf 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java +++ b/ReactAndroid/src/main/java/com/facebook/react/uimanager/NativeViewHierarchyManager.java @@ -592,6 +592,10 @@ protected synchronized final void addRootViewGroup(int tag, View view) { */ protected synchronized void dropView(View view) { UiThreadUtil.assertOnUiThread(); + if (view == null) { + // Ignore this drop operation when view is null. + return; + } if (mTagsToViewManagers.get(view.getId()) == null) { // This view has already been dropped (likely due to a threading issue caused by async js // execution). Ignore this drop operation.