Skip to content

Commit

Permalink
Merge pull request #1735 from kimalec/1727-check-filterdList-length
Browse files Browse the repository at this point in the history
check length of filterdList
  • Loading branch information
pokers authored Aug 21, 2017
2 parents a909b65 + 48d0e68 commit 56a950e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/controllers/controllerTown.js
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,11 @@ function ControllerTown() {
}
}

if (filterdList == 0) {
log.error("mergeShortByShortest shortest list is zero");
return;
}

var lastFilterTime = parseInt(filterdList[filterdList.length-1].time);
var shortLen = shortList.length;

Expand Down

0 comments on commit 56a950e

Please sign in to comment.