mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
[BUG_FIXED] Fix the crash issue while the config.xml is corrupted.
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@24 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
66efb809a3
commit
315e38d7cd
@ -661,8 +661,16 @@ void NppParameters::feedFileListParameters(TiXmlNode *node)
|
||||
childNode && (_nbFile < NB_MAX_LRF_FILE);
|
||||
childNode = childNode->NextSibling("File") )
|
||||
{
|
||||
_LRFileList[_nbFile] = new string((childNode->FirstChild())->Value());
|
||||
_nbFile++;
|
||||
TiXmlNode *node = childNode->FirstChild();
|
||||
if (node)
|
||||
{
|
||||
const char *filePath = node->Value();
|
||||
if (filePath)
|
||||
{
|
||||
_LRFileList[_nbFile] = new string(filePath);
|
||||
_nbFile++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -529,7 +529,6 @@ public:
|
||||
convertSelectedTextTo(UPPERCASE);
|
||||
else
|
||||
execute(SCI_UPPERCASE);
|
||||
|
||||
};
|
||||
|
||||
void collapse(int level2Collapse, bool mode);
|
||||
|
Loading…
x
Reference in New Issue
Block a user