Skip to content

Commit

Permalink
Merge pull request #2496 from Tharsanan1/apk-agent-airl
Browse files Browse the repository at this point in the history
Fix nullpointer error
  • Loading branch information
Tharsanan1 authored Sep 27, 2024
2 parents 65776db + fd9574c commit 44efbda
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 44efbda

Please sign in to comment.