fix nullptr dereference.

This commit is contained in:
Sergey Magidovich 2016-04-27 12:23:21 +03:00
parent 0f0ad7dbb5
commit 6f1d1e8165

View file

@ -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)