mirror of https://github.com/apache/lucene.git
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:
parent
eba450d10b
commit
caeedf1233
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue