diff options
Diffstat (limited to 'indexer/data_factory.cpp')
-rw-r--r-- | indexer/data_factory.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/indexer/data_factory.cpp b/indexer/data_factory.cpp index 965f3f1edf..5f1edc82c0 100644 --- a/indexer/data_factory.cpp +++ b/indexer/data_factory.cpp @@ -1,7 +1,9 @@ -#include "coding/file_container.hpp" #include "indexer/data_factory.hpp" #include "indexer/interval_index.hpp" #include "indexer/old/interval_index_101.hpp" + +#include "coding/file_container.hpp" + #include "defines.hpp" @@ -10,8 +12,11 @@ void IndexFactory::Load(FilesContainerR const & cont) ReadVersion(cont, m_version); m_header.Load(cont); - ReaderSource<FilesContainerR::TReader> src(cont.GetReader(REGION_INFO_FILE_TAG)); - m_region.Deserialize(src); + if (cont.IsExist(REGION_INFO_FILE_TAG)) + { + ReaderSource<FilesContainerR::TReader> src(cont.GetReader(REGION_INFO_FILE_TAG)); + m_regionData.Deserialize(src); + } } IntervalIndexIFace * IndexFactory::CreateIndex(ModelReaderPtr reader) const |