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:
Simon Willnauer 2011-07-07 13:34:32 +00:00
parent 645ecb8dfc
commit 3d5532d75b
1 changed files with 1 additions and 2 deletions

View File

@ -185,8 +185,7 @@ public class DefaultDocValuesProducer extends PerDocValues {
list.add(cfs);
toClose = list;
} else {
toClose = docValues.values();
toClose = closeables;
}
IOUtils.closeSafely(false, toClose);
}