Fix null pointer exception in LogBox

Summary: Changelog: [Internal]

Reviewed By: makovkastar

Differential Revision: D20029904

fbshipit-source-id: 515b5b9d16742b411b594040c31d5c7dcee41925
This commit is contained in:
Rick Hanlon
2020-02-21 09:50:12 -08:00
committed by Facebook Github Bot
parent c6d5019573
commit ae03bf88a5
@@ -59,7 +59,7 @@ public class LogBoxModule extends NativeLogBoxSpec {
new Runnable() {
@Override
public void run() {
if (mLogBoxDialog == null) {
if (mLogBoxDialog == null && mReactRootView != null) {
Activity context = getCurrentActivity();
if (context == null || context.isFinishing()) {
FLog.e(