Skip to content

Commit 4827900

Browse files
committed
fix: NPE
1 parent 53f42f2 commit 4827900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/analyzer/request-analyzer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class RequestAnalyzer {
1616
requestContext.params = this.computeParamsJsonpCallbackScore(requestContext.params);
1717

1818
// 选出其中可能性最大的一个参数作为jsonp callback参数
19-
if (requestContext.params && requestContext.params[0].jsonpCallbackScore > 0) {
19+
if (requestContext.params && requestContext.params.length && requestContext.params[0].jsonpCallbackScore > 0) {
2020
requestContext.params[0].isJsonpCallback = true;
2121
}
2222

0 commit comments

Comments
 (0)