Possible use of null pointer.

Or maybe better to add CCASSERT.
Merge pull request #6993 from Teivaz/v3

* Set COCOS2D_VERSION to 3.2.0
Merge pull request #7000 from iSevenDays/patch-13

Possible use of null pointer.