Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ public Response invoke(Request request, Class<? extends Response> clazz)
} catch (Exception e) {
throw new TransportException("http error", e);
}
String requestId = httpResponse.getLastHeader(HEADER_REQUEST_ID).getValue();

String requestId = "";
if (httpResponse.getLastHeader(HEADER_REQUEST_ID) != null) {
requestId = httpResponse.getLastHeader(HEADER_REQUEST_ID).getValue();
}

// check http status
StatusLine httpStatus = httpResponse.getStatusLine();
Expand Down