lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r777525 - /lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java
Date Fri, 22 May 2009 13:52:28 GMT
Author: mikemccand
Date: Fri May 22 13:52:28 2009
New Revision: 777525

URL: http://svn.apache.org/viewvc?rev=777525&view=rev
Log:
LUCENE-1636: catch null input passed to AttributeSource ctor

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java?rev=777525&r1=777524&r2=777525&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/util/AttributeSource.java Fri May 22 13:52:28
2009
@@ -66,6 +66,9 @@
   }
   
   public AttributeSource(AttributeSource input) {
+    if (input == null) {
+      throw new IllegalArgumentException("input AttributeSource must not be null");
+    }
     this.attributes = input.attributes;
   }
   



Mime
View raw message