We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Dictionary::createWithContentsOfFile should check pRet wether is NULL
Dictionary::createWithContentsOfFile should check pRet wether is NULL
Bug #3105 [Closed]
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
Status: | Closed | |
---|---|---|
Start date: | 2013-11-02 | |
Priority: | Low | |
Due date: | ||
Assignee: | - | |
% Done: | 0% |
|
Category: | all | |
Target version: | - |
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!