We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa10323 commit c1a5c6eCopy full SHA for c1a5c6e
plugins/xpay/xpay.c
@@ -1914,6 +1914,12 @@ static struct command_result *handle_rpc_command(struct command *cmd,
1914
bolt11 = params_tok + 1;
1915
if (params_tok->size == 2)
1916
amount_msat = json_next(bolt11);
1917
+
1918
+ /* some arguments could have null values in the list */
1919
+ if (bolt11 && json_tok_is_null(buf, bolt11))
1920
+ bolt11 = NULL;
1921
+ if (amount_msat && json_tok_is_null(buf, amount_msat))
1922
+ amount_msat = NULL;
1923
} else if (params_tok->type == JSMN_OBJECT) {
1924
const jsmntok_t *t, *maxfeepercent = NULL, *exemptfee = NULL;
1925
size_t i;
0 commit comments