Skip to content

Commit 2254582

Browse files
Merge pull request #205 from CodeAtlas/apigateway_ignore_null_parameters
Ignore null request parameters
2 parents bd9122d + ab8f655 commit 2254582

File tree

1 file changed

+4
-0
lines changed
  • aws-android-sdk-apigateway-core/src/main/java/com/amazonaws/mobileconnectors/apigateway

1 file changed

+4
-0
lines changed

aws-android-sdk-apigateway-core/src/main/java/com/amazonaws/mobileconnectors/apigateway/ApiClientHandler.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ Request<?> buildRequest(Method method, Object[] args) {
197197
void processParameter(Request<?> request, Parameter p, Object arg) {
198198
final String name = p.name();
199199
final String location = p.location();
200+
201+
if (arg == null) {
202+
return;
203+
}
200204

201205
if ("header".equals(location)) {
202206
request.addHeader(name, String.valueOf(arg));

0 commit comments

Comments
 (0)