Index: src/java/org/apache/lucene/search/BooleanQuery.java =================================================================== --- src/java/org/apache/lucene/search/BooleanQuery.java (revision 475016) +++ src/java/org/apache/lucene/search/BooleanQuery.java (working copy) @@ -176,10 +176,11 @@ private class BooleanWeight implements Weight { protected Similarity similarity; - protected Vector weights = new Vector(); + protected Vector weights; public BooleanWeight(Searcher searcher) throws IOException { + this.weights = new Vector(clauses.size()); this.similarity = getSimilarity(searcher); for (int i = 0 ; i < clauses.size(); i++) { BooleanClause c = (BooleanClause)clauses.elementAt(i);