[ https://issues.apache.org/jira/browse/HTTPCLIENT-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16357087#comment-16357087 ]
Hans-Peter Keck commented on HTTPCLIENT-1904: --------------------------------------------- This is the stacktrace: java.lang.NullPointerException: null at org.apache.http.impl.cookie.PublicSuffixDomainFilter.match(PublicSuffixDomainFilter.java:93) ~[httpclient-4.5.5.jar:4.5.5] at org.apache.http.impl.cookie.CookieSpecBase.match(CookieSpecBase.java:136) ~[httpclient-4.5.5.jar:4.5.5] at org.apache.http.impl.cookie.DefaultCookieSpec.match(DefaultCookieSpec.java:178) ~[httpclient-4.5.5.jar:4.5.5] at org.apache.http.client.protocol.RequestAddCookies.process(RequestAddCookies.java:166) ~[httpclient-4.5.5.jar:4.5.5] at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:133) ~[httpcore-4.4.9.jar:4.4.9] at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:183) ~[httpclient-4.5.5.jar:4.5.5] at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.5.jar:4.5.5] at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) ~[httpclient-4.5.5.jar:4.5.5] at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.5.jar:4.5.5] at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[httpclient-4.5.5.jar:4.5.5] I could fix the bug myself, it should be easy. But currently I fail at building the code, because I only have Java 8 and the animal sniffer plugin complains about the ConcurrentHashMap. Is there an easy solution without installing an older Java version? > NPE in PublicSuffixDomainFilter > ------------------------------- > > Key: HTTPCLIENT-1904 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1904 > Project: HttpComponents HttpClient > Issue Type: Bug > Affects Versions: 4.5.5 > Reporter: Hans-Peter Keck > Priority: Minor > > The PublicSuffixDomainFilter.match(...) will throw an NPE if called with a > cookie that has no domain set (i.e. it is null). The filter should handle > this case gracefully, which means to just return "false". -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org