Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2015-07-28 12:49:03 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:02:11 +0300
commit3dedb6222d4a7fc7e923be325cd08bd8b243e493 (patch)
treeb43524bda8ef983b4ed6d88345e8a56c7ff24900 /indexer/mwm_set.cpp
parentf9e202db4592ea42eda44ce96a6f86f8fb4377c6 (diff)
Integration of retrieval.
Diffstat (limited to 'indexer/mwm_set.cpp')
-rw-r--r--indexer/mwm_set.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indexer/mwm_set.cpp b/indexer/mwm_set.cpp
index 164748f53a..b0224cc0c3 100644
--- a/indexer/mwm_set.cpp
+++ b/indexer/mwm_set.cpp
@@ -193,7 +193,8 @@ unique_ptr<MwmSet::MwmValueBase> MwmSet::LockValue(MwmId const & id)
unique_ptr<MwmSet::MwmValueBase> MwmSet::LockValueImpl(MwmId const & id)
{
- CHECK(id.IsAlive(), (id));
+ if (!id.IsAlive())
+ return nullptr;
shared_ptr<MwmInfo> info = id.GetInfo();
// It's better to return valid "value pointer" even for "out-of-date" files,