mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix null pointer exception in LogBox
Summary: Changelog: [Internal] Reviewed By: makovkastar Differential Revision: D20029904 fbshipit-source-id: 515b5b9d16742b411b594040c31d5c7dcee41925
This commit is contained in:
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(
|
||||
|
||||
Reference in New Issue
Block a user