mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +02:00
[EU-FOSSA] Fix crash issue of User Define dialog while deleting a unallocated entry
This commit is contained in:
parent
32f1dafe77
commit
f7d92eb992
@ -2622,10 +2622,14 @@ std::pair<unsigned char, unsigned char> NppParameters::feedUserLang(TiXmlNode *n
|
|||||||
const TCHAR *name = (childNode->ToElement())->Attribute(TEXT("name"));
|
const TCHAR *name = (childNode->ToElement())->Attribute(TEXT("name"));
|
||||||
const TCHAR *ext = (childNode->ToElement())->Attribute(TEXT("ext"));
|
const TCHAR *ext = (childNode->ToElement())->Attribute(TEXT("ext"));
|
||||||
const TCHAR *udlVersion = (childNode->ToElement())->Attribute(TEXT("udlVersion"));
|
const TCHAR *udlVersion = (childNode->ToElement())->Attribute(TEXT("udlVersion"));
|
||||||
try {
|
|
||||||
if (!name || !name[0] || !ext)
|
|
||||||
throw std::runtime_error("NppParameters::feedUserLang : UserLang name is missing");
|
|
||||||
|
|
||||||
|
if (!name || !name[0] || !ext)
|
||||||
|
{
|
||||||
|
// UserLang name is missing, just ignore this entry
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
if (!udlVersion)
|
if (!udlVersion)
|
||||||
_userLangArray[_nbUserLang] = new UserLangContainer(name, ext, TEXT(""));
|
_userLangArray[_nbUserLang] = new UserLangContainer(name, ext, TEXT(""));
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user