mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 06:04:15 +00:00
check for destroyed instance before calling native method
Differential Revision: D2508050
This commit is contained in:
parent
85370ecba6
commit
787895e903
@ -274,6 +274,7 @@ public class DevSupportManager implements NativeModuleCallExceptionHandler {
|
||||
|
||||
if (mCurrentContext != null &&
|
||||
mCurrentContext.getCatalystInstance() != null &&
|
||||
!mCurrentContext.getCatalystInstance().isDestroyed() &&
|
||||
mCurrentContext.getCatalystInstance().getBridge() != null &&
|
||||
mCurrentContext.getCatalystInstance().getBridge().supportsProfiling()) {
|
||||
options.put(
|
||||
|
Loading…
x
Reference in New Issue
Block a user