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:
Pull Request resolved: #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
  • Loading branch information
cortinico authored and facebook-github-bot committed Oct 5, 2023
1 parent 1b9b13a commit 2f1ecea
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 2f1ecea

Please sign in to comment.