You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by si...@apache.org on 2011/07/07 15:34:32 UTC
svn commit: r1143814 -
/lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java
Author: simonw
Date: Thu Jul 7 13:34:32 2011
New Revision: 1143814
URL: http://svn.apache.org/viewvc?rev=1143814&view=rev
Log:
fixed possible NPE if called during initialization
Modified:
lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java
Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java?rev=1143814&r1=1143813&r2=1143814&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/DefaultDocValuesProducer.java Thu Jul 7 13:34:32 2011
@@ -185,8 +185,7 @@ public class DefaultDocValuesProducer ex
list.add(cfs);
toClose = list;
} else {
- toClose = docValues.values();
-
+ toClose = closeables;
}
IOUtils.closeSafely(false, toClose);
}