Skip to content

Commit 48770ab

Browse files
committed
- fixes a defensive condition
1 parent 58eddbe commit 48770ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/microsoft/graph/http/HttpResponseHeadersHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public Map<String, String> getResponseHeadersAsMapStringString(final Response re
2222
while (index < responseHeaders.size()) {
2323
final String headerName = responseHeaders.name(index);
2424
final String headerValue = responseHeaders.value(index);
25-
if (headerName == null && headerValue == null) {
25+
if (headerName == null || headerValue == null) {
2626
break;
2727
}
2828
headers.put(headerName, headerValue);

0 commit comments

Comments
 (0)