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-06-08 16:52:36 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-06-23 19:23:29 +0300
commitdf4667ad59606a0ba6622dac4a4936906c487a00 (patch)
treebc71dc5474a377a19ea93c07a5ec98b82e604920 /indexer/editable_map_object.cpp
parent37b0592f7e4f7a89c731019df19a62e829c3a227 (diff)
Add validation to android.
Diffstat (limited to 'indexer/editable_map_object.cpp')
-rw-r--r--indexer/editable_map_object.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indexer/editable_map_object.cpp b/indexer/editable_map_object.cpp
index e69836c95c..f4bed945f6 100644
--- a/indexer/editable_map_object.cpp
+++ b/indexer/editable_map_object.cpp
@@ -255,6 +255,8 @@ bool EditableMapObject::ValidateFlats(string const & flats)
// static
bool EditableMapObject::ValidatePostCode(string const & postCode)
{
+ if (postCode.empty())
+ return true;
return search::LooksLikePostcode(postCode, false /* IsPrefix */);
}