Skip to content

Commit

Permalink
Fix Android incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
robinst committed Feb 9, 2016
1 parent 9c30a1e commit a8e85e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/org/nibor/autolink/LinkExtractor.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ private Builder() {
* @return this builder
*/
public Builder linkTypes(Set<LinkType> linkTypes) {
this.linkTypes = new HashSet<>(Objects.requireNonNull(linkTypes, "linkTypes must not be null"));
if (linkTypes == null) {
throw new NullPointerException("linkTypes must not be null");
}
this.linkTypes = new HashSet<>(linkTypes);
return this;
}

Expand Down

0 comments on commit a8e85e3

Please sign in to comment.