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:
authorSergey Magidovich <mgsergio@mapswithme.com>2016-04-27 12:23:21 +0300
committerSergey Magidovich <mgsergio@mapswithme.com>2016-04-27 12:23:21 +0300
commit6f1d1e8165bc02fb60e07f1229851265b5336a63 (patch)
tree58813ea0bdcda417e8fd715745f7899cb6c1d4bf /indexer/osm_editor.cpp
parent0f0ad7dbb5aea1736f50dfdb07f94400e8cd0e5f (diff)
fix nullptr dereference.
Diffstat (limited to 'indexer/osm_editor.cpp')
-rw-r--r--indexer/osm_editor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indexer/osm_editor.cpp b/indexer/osm_editor.cpp
index 6c10850a1a..68c2922e7a 100644
--- a/indexer/osm_editor.cpp
+++ b/indexer/osm_editor.cpp
@@ -331,7 +331,8 @@ Editor::FeatureStatus Editor::GetFeatureStatus(MwmSet::MwmId const & mwmId, uint
bool Editor::IsFeatureUploaded(MwmSet::MwmId const & mwmId, uint32_t index) const
{
- return GetFeatureTypeInfo(mwmId, index)->m_uploadStatus == kUploaded;
+ auto const * info = GetFeatureTypeInfo(mwmId, index)
+ return info && info->m_uploadStatus == kUploaded;
}
void Editor::DeleteFeature(FeatureType const & feature)