With static analysis we have found this issue on the react's code: https://nemo.sonarqube.org/issues/search#issues=AVTMqSKVtu4QdCAX4XJN

On line 29 there is a null check of `target` but there is no on line 34.

}
    var target = getEventTarget(event);
    if (target != null && target.window === target) {
      
      return target;
    }
    var doc = target.ownerDocument;
    
    if (doc) {
      return doc.defaultView || doc.parentWindow;
    } else {
      return window;
    }
  },
  detail: function(event) {
    return event.detail || 0;
  },
};
/**
 * @param {object} dispatchConfig Configuration used to dispatch this event.
 * @param {string} dispatchMarker Marker identifying the event target.
 * @param {object} nativeEvent Native browser event.
 * @extends {SyntheticEvent}
 */
function SyntheticUIEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget) {
  return SyntheticEvent.call(this, dispatchConfig, dispatchMarker, nativeEvent, nativeEventTarget);
}
SyntheticEvent.augmentClass(SyntheticUIEvent, UIEventInterface);
module.exports = SyntheticUIEvent;