From c58f3f7cb37b267160bff8b470c643ebf30ba144 Mon Sep 17 00:00:00 2001 From: Don HO Date: Wed, 11 Nov 2020 03:33:39 +0100 Subject: [PATCH] Fix an exception with -export=functionList while absence of config.xml --- PowerEditor/src/Parameters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/Parameters.cpp b/PowerEditor/src/Parameters.cpp index 29266429..99fbf787 100644 --- a/PowerEditor/src/Parameters.cpp +++ b/PowerEditor/src/Parameters.cpp @@ -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;