Permalink
Browse files

Re-added null inst check to avoid EventPropagators bug

Reviewed By: fkgozali

Differential Revision: D4787522

fbshipit-source-id: 80eb4da5a6df46a8a7235358c70b2a04e43dc574
  • Loading branch information...
bvaughn authored and facebook-github-bot committed Mar 28, 2017
1 parent f46fd36 commit 01215c013d54b525c099d866ffd79accc914d49f
Showing with 1 addition and 1 deletion.
  1. +1 −1 Libraries/Renderer/src/renderers/shared/shared/event/EventPropagators.js
@@ -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) {

0 comments on commit 01215c0

Please sign in to comment.