LUCENE-1636: catch null input passed to AttributeSource ctor

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@777525 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-05-22 13:52:28 +00:00
parent eba450d10b
commit caeedf1233
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,9 @@ public class AttributeSource {
} }
public AttributeSource(AttributeSource input) { public AttributeSource(AttributeSource input) {
if (input == null) {
throw new IllegalArgumentException("input AttributeSource must not be null");
}
this.attributes = input.attributes; this.attributes = input.attributes;
} }