Fix an exception with -export=functionList while absence of config.xml

This commit is contained in:
Don HO 2020-11-11 03:33:39 +01:00
parent bbeb66aa56
commit c58f3f7cb3
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

View File

@ -5709,7 +5709,7 @@ void NppParameters::createXmlTreeFromGUIParams()
TiXmlNode *oldGUIRoot = nppRoot->FirstChildElement(TEXT("GUIConfigs"));
TiXmlElement* dockMngNodeDup = nullptr;
TiXmlNode* dockMngNodeOriginal = nullptr;
if (_nppGUI._isCmdlineNosessionActivated)
if (oldGUIRoot && _nppGUI._isCmdlineNosessionActivated)
{
for (TiXmlNode *childNode = oldGUIRoot->FirstChildElement(TEXT("GUIConfig"));
childNode;