fix Null pointer access

This commit is contained in:
dpull 2013-05-08 15:53:54 +08:00
parent 87a15d1089
commit cec80e62ef
1 changed files with 5 additions and 1 deletions

View File

@ -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)