mirror of https://github.com/apache/lucene.git
fixed possible NPE if called during initialization
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1143814 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
645ecb8dfc
commit
3d5532d75b
|
@ -185,8 +185,7 @@ public class DefaultDocValuesProducer extends PerDocValues {
|
|||
list.add(cfs);
|
||||
toClose = list;
|
||||
} else {
|
||||
toClose = docValues.values();
|
||||
|
||||
toClose = closeables;
|
||||
}
|
||||
IOUtils.closeSafely(false, toClose);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue