Re-added null inst check to avoid EventPropagators bug

Reviewed By: fkgozali

Differential Revision: D4787522

fbshipit-source-id: 80eb4da5a6df46a8a7235358c70b2a04e43dc574
This commit is contained in:
Brian Vaughn 2017-03-28 10:51:29 -07:00 committed by Facebook Github Bot
parent f46fd36a44
commit 01215c013d
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ function accumulateTwoPhaseDispatchesSingleSkipTarget(event) {
* requiring that the `dispatchMarker` be the same as the dispatched ID.
*/
function accumulateDispatches(inst, ignoredDirection, event) {
if (event && event.dispatchConfig.registrationName) {
if (inst && event && event.dispatchConfig.registrationName) {
var registrationName = event.dispatchConfig.registrationName;
var listener = getListener(inst, registrationName);
if (listener) {