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:
Sebastian Bazley 2009-07-24 00:30:43 +00:00
parent 66dc2da9ff
commit 35066eaff7
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}