Skip to content

Commit e8fa838

Browse files
committed
Fix request nil check
1 parent c164890 commit e8fa838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/protocols/aws-query-protocol/src/main/java/software/amazon/awssdk/protocols/query/internal/marshall/QueryProtocolMarshaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private QueryProtocolMarshaller(Builder builder) {
5252

5353
private SdkHttpFullRequest.Builder fillBasicRequestParams(OperationInfo operationInfo) {
5454
String path = "";
55-
if (request.encodedPath() != null && !"/".equals(request.encodedPath())) {
55+
if (request != null && request.encodedPath() != null && !"/".equals(request.encodedPath())) {
5656
path = request.encodedPath();
5757
}
5858
return ProtocolUtils.createSdkHttpRequest(operationInfo, endpoint)

0 commit comments

Comments
 (0)