Oops - can't clone null ...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@797280 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
66dc2da9ff
commit
35066eaff7
|
@ -60,7 +60,7 @@ public class BestMatchSpec implements CookieSpec {
|
|||
|
||||
public BestMatchSpec(final String[] datepatterns, boolean oneHeader) {
|
||||
super();
|
||||
this.datepatterns = datepatterns.clone();
|
||||
this.datepatterns = datepatterns == null ? null : datepatterns.clone();
|
||||
this.oneHeader = oneHeader;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue