Skip to content

Commit

Permalink
MANATEE-286 manatee-adm history fails with `TypeError: Cannot read ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Pacheco committed Jun 29, 2015
1 parent 56205ab commit 99fd1bf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/adm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1772,9 +1772,10 @@ function annotateHistoryNode(evt, last)
nst.sync.zoneId.substr(0, 8)));
}

if (nst.sync === null && lst.sync !== null ||
nst.sync !== null && lst.sync === null ||
nst.sync.zoneId != lst.sync.zoneId) {
if ((nst.sync === null && lst.sync !== null) ||
(nst.sync !== null && lst.sync === null) ||
(nst.sync !== null && lst.sync !== null &&
nst.sync.zoneId != lst.sync.zoneId)) {
return ('error: sync changed, but gen number did not');
}

Expand Down

0 comments on commit 99fd1bf

Please sign in to comment.