Skip to content

Commit

Permalink
Fix nullpointer error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharsanan1 committed Sep 26, 2024
1 parent 935e5da commit fd9574c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,11 @@ private CheckResponse buildResponse(CheckRequest request, ResponseObject respons

Struct.Builder structBuilder = Struct.newBuilder();
if (responseObject.getMetaDataMap() != null) {
responseObject.getMetaDataMap().forEach((key, value) ->
addMetadata(structBuilder, key, value));
responseObject.getMetaDataMap().forEach((key, value) -> {
if (value != null) {
addMetadata(structBuilder, key, value);
}
});
}

//Adds original request path header without params as a metadata for access logging.
Expand Down

0 comments on commit fd9574c

Please sign in to comment.