Skip to content

Commit

Permalink
Merge pull request OptimalBits#213 from akigupta131/master
Browse files Browse the repository at this point in the history
Problem when any of ACL Middleware argument is null or undefined | Solved
  • Loading branch information
manast authored Jul 18, 2017
2 parents adc8b4b + 178d48b commit ce057f0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@ var checkParams = function(args, contract){
}catch(e){
console.log(e, args)
}

type = typeOf(args[i]);
fulfilled = false;
for(j=0; j<types.length; j++){
if (type === types[j]){
fulfilled = true;
break;
if (args[i]) {
type = typeOf(args[i]);
fulfilled = false;
for(j=0; j<types.length; j++){
if (type === types[j]){
fulfilled = true;
break;
}
}
}
if(fulfilled===false){
Expand Down

0 comments on commit ce057f0

Please sign in to comment.