From 3714faa15d11dc71d5e51e88ae3c4776a84adc5e Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sat, 10 Oct 2015 08:53:34 -0700 Subject: [PATCH] Fixed crash on Android in debug mode when World maps are absent (not downloaded yet). --- platform/local_country_file_utils.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/local_country_file_utils.cpp b/platform/local_country_file_utils.cpp index 19bcc28718..86286867e0 100644 --- a/platform/local_country_file_utils.cpp +++ b/platform/local_country_file_utils.cpp @@ -195,7 +195,10 @@ void FindAllLocalMaps(vector & localFiles) catch (RootException const & ex) { if (i == localFiles.end()) - LOG(LERROR, ("Can't find any:", file, "Reason:", ex.Msg())); + { + // This warning is possible on android devices without pre-downloaded Worlds/fonts files. + LOG(LWARNING, ("Can't find any:", file, "Reason:", ex.Msg())); + } } } }