@sentry/replay 7.27.0 → 7.28.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/replay.js CHANGED
@@ -919,6 +919,12 @@ class ReplayContainer {
919
919
  };
920
920
 
921
921
  const replayEvent = await getReplayEvent.getReplayEvent({ scope, client, replayId, event: baseEvent });
922
+
923
+ if (!replayEvent) {
924
+ (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error('[Replay] An event processor returned null, will not send replay.');
925
+ return;
926
+ }
927
+
922
928
  replayEvent.tags = {
923
929
  ...replayEvent.tags,
924
930
  sessionSampleRate: this._options.sessionSampleRate,