Apache Lucene open-source search software
LUCENE-1636: catch null input passed to AttributeSource ctor
Michael McCandlesscaeedf123348
diff --git a/src/java/org/apache/lucene/util/AttributeSource.java b/src/java/org/apache/lucene/util/AttributeSource.javaindex afecea2d26c..1ac06a941c8 100644--- a/src/java/org/apache/lucene/util/AttributeSource.java+++ b/src/java/org/apache/lucene/util/AttributeSource.java@@ -66,6 +66,9 @@ public class AttributeSource {}public AttributeSource(AttributeSource input) {+ if (input == null) {+ throw new IllegalArgumentException("input AttributeSource must not be null");+ }this.attributes = input.attributes;}