Skip to content

Commit

Permalink
undefined or null check
Browse files Browse the repository at this point in the history
  • Loading branch information
jlamendo committed Dec 10, 2014
1 parent e52b1f4 commit e699167
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ fuzzFactory.prototype.nextRoute = function() {
};
_this.route = route;
_this.path = this.route.path;
if (route.queryParams && route.queryParams.children) {
if (route.queryParams !== null && route.queryParams !== undefined && route.queryParams.children) {
route.queryParams.children.forEach(function(param) {
if(param.name !=='path'){
tmp = param;
Expand Down

0 comments on commit e699167

Please sign in to comment.