Skip to content

Commit

Permalink
FIX #835: null mNotification (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielEliraz committed Apr 24, 2022
1 parent c2178bb commit 47161c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ public void getInitialNotification(final Promise promise) {
return;
}

InitialNotificationHolder.getInstance().clear();
result = Arguments.fromBundle(notification.asBundle());
InitialNotificationHolder.getInstance().clear();
} catch (NullPointerException e) {
Log.e(LOGTAG, "getInitialNotification: Null pointer exception");
} finally {
promise.resolve(result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public synchronized boolean isReactInitialized() {
return false;
}

return mReactContext.hasActiveCatalystInstance();
return mReactContext.hasActiveReactInstance();
}

@Override
Expand Down

0 comments on commit 47161c9

Please sign in to comment.