mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix instacrash on bridgeless due to calling showMessage on null instance (#39834)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39834 Bridgeless is instacrashing on fast-refresh. This fixes it. Changelog: [Android] [Fixed] - Fix instacrash on bridgeless due to calling showMessage on null instance Reviewed By: cipolleschi Differential Revision: D49929822 fbshipit-source-id: a2ce65797abd34d6a3e2b7f2c50d38a62ea8bdea
This commit is contained in:
committed by
Facebook GitHub Bot
parent
1b9b13a7b3
commit
2f1ecea1cb
+3
-1
@@ -46,7 +46,9 @@ public class DevLoadingModule extends NativeDevLoadingViewSpec {
|
||||
new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
mDevLoadingViewManager.showMessage(message);
|
||||
if (mDevLoadingViewManager != null) {
|
||||
mDevLoadingViewManager.showMessage(message);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user