forked from organicmaps/organicmaps-tmp
Merge pull request #3017 from mgsergio/fix-IsFeatureUploaded
[Editor] Fix nullptr dereference.
This commit is contained in:
commit
199e742ae7
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue