From 5410dc3b2c317d30108ad521b33b3c80b3e43db5 Mon Sep 17 00:00:00 2001 From: Nishant Das Patnaik Date: Wed, 2 Apr 2014 12:44:01 +0530 Subject: [PATCH] Update analyzer.js --- analyzer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyzer.js b/analyzer.js index 463fd66..a8fc569 100755 --- a/analyzer.js +++ b/analyzer.js @@ -803,7 +803,7 @@ function checkInFunctionCall(sink, val, sinkObj) { } } } - if (sinkWithConstantParam.indexOf(sink) != -1) { + if (sinkWithConstantParam && (sinkWithConstantParam.indexOf(sink) != -1)) { for (var j = 0; j < real_func_call[i].arguments.literals.length; j++) { var args = real_func_call[i].arguments.literals[j].split("+"); for (var k = 0; k < args.length; k++) {