Skip to content

Commit 934e0fa

Browse files
committed
Merge pull request #110 from gogo40/master
Fix bug on JavaScript client stub generator
2 parents aadcb86 + 54eadbd commit 934e0fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/stubgenerator/client/jsclientstubgenerator.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ using namespace std;
2323
request.id = id++;\n\
2424
request.jsonrpc = \"2.0\";\n\
2525
request.method = method;\n\
26-
request.params = params\n\
26+
if (params !== null) {\n\
27+
request.params = params;\n\
28+
}\n\
2729
JSON.stringify(request);\n\
2830
\n\
2931
$.ajax({\n\

0 commit comments

Comments
 (0)