Added empty string check

This commit is contained in:
Justin Hawkwood 2015-06-09 09:19:04 -07:00
parent eca488b85a
commit 852639cfe7
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ void TextureCache::addImageAsync(const std::string &path, const std::function<vo
std::string fullpath = FileUtils::getInstance()->fullPathForFilename(path);
// check if file exists
if (! FileUtils::getInstance()->isFileExist( fullpath )) {
if ( fullpath.empty() || ! FileUtils::getInstance()->isFileExist( fullpath ) ) {
callback(nullptr);
return;
}