@webex/calling 3.12.0-next.85 → 3.12.0-next.87

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.
@@ -537,7 +537,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
537
537
  (0, _defineProperty2.default)(_this, "registerEffectListener", function (addedEffect) {
538
538
  if (_this.localAudioStream) {
539
539
  var effect = _this.localAudioStream.getEffectByKind(_constants.NOISE_REDUCTION_EFFECT);
540
- if (effect === addedEffect) {
540
+ if (effect && effect === addedEffect) {
541
541
  effect.on(_mediaHelpers.EffectEvent.Enabled, _this.onEffectEnabled);
542
542
  effect.on(_mediaHelpers.EffectEvent.Disabled, _this.onEffectDisabled);
543
543
  }