From e7bc146524beae93a295eeaec443283525ff8628 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Thu, 18 Mar 2021 12:58:51 +0100 Subject: [PATCH] fix possible NPE Signed-off-by: tobiasKaminsky --- src/main/java/com/nextcloud/android/sso/InputStreamBinder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/nextcloud/android/sso/InputStreamBinder.java b/src/main/java/com/nextcloud/android/sso/InputStreamBinder.java index 6198785233..24113418a3 100644 --- a/src/main/java/com/nextcloud/android/sso/InputStreamBinder.java +++ b/src/main/java/com/nextcloud/android/sso/InputStreamBinder.java @@ -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()));