From f6dcf886859b633e083e2b5c7fedf835ef78f3f1 Mon Sep 17 00:00:00 2001 From: Michael Contento Date: Mon, 23 Sep 2013 12:05:22 +0200 Subject: [PATCH] Prevent nullptr access in AssetsManager --- extensions/AssetsManager/AssetsManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/AssetsManager/AssetsManager.cpp b/extensions/AssetsManager/AssetsManager.cpp index b1b909bce2..a57bbdcc8d 100644 --- a/extensions/AssetsManager/AssetsManager.cpp +++ b/extensions/AssetsManager/AssetsManager.cpp @@ -628,7 +628,7 @@ void AssetsManager::Helper::handleUpdateSucceed(Message *msg) 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 )