From cec80e62ef4344aee1a34a0e6f35fd22f9147459 Mon Sep 17 00:00:00 2001 From: dpull Date: Wed, 8 May 2013 15:53:54 +0800 Subject: [PATCH] fix Null pointer access --- extensions/CCBReader/CCBAnimationManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/CCBReader/CCBAnimationManager.cpp b/extensions/CCBReader/CCBAnimationManager.cpp index fd8d88e3af..9c76ce4a6b 100644 --- a/extensions/CCBReader/CCBAnimationManager.cpp +++ b/extensions/CCBReader/CCBAnimationManager.cpp @@ -185,7 +185,11 @@ void CCBAnimationManager::setDelegate(CCBAnimationManagerDelegate *pDelegate) const char* CCBAnimationManager::getRunningSequenceName() { - return mRunningSequence->getName(); + if (mRunningSequence) + { + return mRunningSequence->getName(); + } + return NULL; } const CCSize& CCBAnimationManager::getContainerSize(CCNode *pNode)