Skip to content

Commit 787895e

Browse files
foghinafacebook-github-bot-5
authored andcommitted
check for destroyed instance before calling native method
Differential Revision: D2508050
1 parent 85370ec commit 787895e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ public void onOptionSelected() {
274274

275275
if (mCurrentContext != null &&
276276
mCurrentContext.getCatalystInstance() != null &&
277+
!mCurrentContext.getCatalystInstance().isDestroyed() &&
277278
mCurrentContext.getCatalystInstance().getBridge() != null &&
278279
mCurrentContext.getCatalystInstance().getBridge().supportsProfiling()) {
279280
options.put(

0 commit comments

Comments
 (0)