Skip to content

Commit

Permalink
HTTPCLIENT-1904: check cookie domain for null
Browse files Browse the repository at this point in the history
  • Loading branch information
hapeka72 authored and ok2c committed Feb 9, 2018
1 parent 1253d7f commit a2cc0a5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ public PublicSuffixDomainFilter(
@Override
public boolean match(final Cookie cookie, final CookieOrigin origin) {
final String host = cookie.getDomain();
if (host == null) {
return false;
}
final int i = host.indexOf('.');
if (i >= 0) {
final String domain = host.substring(i);
Expand Down

0 comments on commit a2cc0a5

Please sign in to comment.