Don't send token if null

This commit is contained in:
zzz
2022-12-17 11:49:04 -05:00
parent 3bb594e77d
commit c1650d208c

View File

@ -90,7 +90,8 @@ public class JSONRPC2Interface {
throw new UnrecoverableFailedRequestException(); // Max retries reached. Throw exception.
}
HashMap outParams = (HashMap) req.getParams();
outParams.put("Token", token); // Add authentication token
if (token != null)
outParams.put("Token", token); // Add authentication token
req.setParams(outParams);
JSONRPC2Response resp = null;