Skip to content

Commit

Permalink
Fix instacrash on bridgeless due to calling showMessage on null insta…
Browse files Browse the repository at this point in the history
…nce (#39834)

Summary:

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
  • Loading branch information
cortinico authored and facebook-github-bot committed Oct 5, 2023
1 parent bad027c commit f69d7d4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ public void showMessage(final String message, final Double color, final Double b
new Runnable() {
@Override
public void run() {
mDevLoadingViewManager.showMessage(message);
if (mDevLoadingViewManager != null) {
mDevLoadingViewManager.showMessage(message);
}
}
});
}
Expand Down

0 comments on commit f69d7d4

Please sign in to comment.