Prevent nullptr access in AssetsManager

This commit is contained in:
Michael Contento 2013-09-23 12:05:22 +02:00
parent 635f394e93
commit f6dcf88685
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ void AssetsManager::Helper::handleUpdateSucceed(Message *msg)
CCLOG("can not remove downloaded zip file %s", zipfileName.c_str()); CCLOG("can not remove downloaded zip file %s", zipfileName.c_str());
} }
if (manager) manager->_delegate->onSuccess(); if (manager->_delegate) manager->_delegate->onSuccess();
} }
AssetsManager* AssetsManager::create(const char* packageUrl, const char* versionFileUrl, const char* storagePath, ErrorCallback errorCallback, ProgressCallback progressCallback, SuccessCallback successCallback ) AssetsManager* AssetsManager::create(const char* packageUrl, const char* versionFileUrl, const char* storagePath, ErrorCallback errorCallback, ProgressCallback progressCallback, SuccessCallback successCallback )