Projects > cpp > Issues > Bug #3105

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Dictionary::createWithContentsOfFile should check pRet wether is NULL

Bug #3105 [Closed]
LeiQiao 2013-11-02 01:48 . Updated about 2 years ago

Dictionary* Dictionary::createWithContentsOfFile(const char pFileName)
{
Dictionary
pRet = createWithContentsOfFileThreadSafe(pFileName);
pRet->autorelease();
return pRet;
}
when a file is NOT a plist, createWithContentsOfFileThreadSafe will return NULL, then should check if it is a NULL value. this happens often when a file downloaded from internet. good project ! very useful ! thanks!

walzer@cocos2d-x.org 2014-10-08 02:54

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8247

Atom PDF

Status:Closed
Start date:2013-11-02
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:all
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.