fix possible NPE

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2021-03-18 12:58:51 +01:00
parent 561cff8157
commit e7bc146524
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -335,7 +335,7 @@ public class InputStreamBinder extends IInputStreamService.Stub {
HttpMethodBase method = buildMethod(request, client.getBaseUri(), requestBodyInputStream);
if (!request.getParameterV2().isEmpty()) {
if (request.getParameterV2() != null && !request.getParameterV2().isEmpty()) {
method.setQueryString(convertListToNVP(request.getParameterV2()));
} else {
method.setQueryString(convertMapToNVP(request.getParameter()));