Skip to content

Commit

Permalink
try-catch if getJSModuleName returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Jun 11, 2024
1 parent ec59120 commit 56862e0
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,12 @@ public void run() {

if (mShouldLogContentAppeared) {
mShouldLogContentAppeared = false;
String jsModuleName = getJSModuleName();
ReactMarker.logMarker(ReactMarkerConstants.CONTENT_APPEARED, jsModuleName, mRootViewTag);
try {
String jsModuleName = getJSModuleName();
ReactMarker.logMarker(ReactMarkerConstants.CONTENT_APPEARED, jsModuleName, mRootViewTag);
} catch (AssertionError e) {
ReactSoftExceptionLogger.logSoftException(TAG, e);
}
}
}

Expand Down

0 comments on commit 56862e0

Please sign in to comment.