diff options
author | George Hazan <george.hazan@gmail.com> | 2024-07-02 17:35:35 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-07-02 17:35:35 +0300 |
commit | fd3db39923269ba0c08716c9c20f7910099940de (patch) | |
tree | ca9276a46df30e26983ef9ac4c4177cdae08f2d4 /plugins/UserInfoEx | |
parent | eb03222690e473a293415a7f92c7c88b928b69cd (diff) |
fixes #4510 (UInfoEx: падение при экспорте контакта mRadio или погоды)
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r-- | plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp b/plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp index 33faddebfe..e26522981f 100644 --- a/plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp +++ b/plugins/UserInfoEx/src/ex_import/classExImContactXML.cpp @@ -109,9 +109,9 @@ TiXmlElement *CExImContactXML::CreateXmlElement() _xmlDoc.InsertEndChild(_xmlWriter = _xmlDoc.NewElement(XKEY_CONTACT));
LPSTR pszUID = uid2String(TRUE);
- _xmlWriter->SetAttribute("ampro", _pszAMPro);
_xmlWriter->SetAttribute("proto", _pszProto);
+ if (_pszAMPro) _xmlWriter->SetAttribute("ampro", _pszAMPro);
if (_pszDisp) _xmlWriter->SetAttribute("disp", _pszDisp);
if (_pszNick) _xmlWriter->SetAttribute("nick", _pszNick);
if (_pszGroup) _xmlWriter->SetAttribute("group", _pszGroup);
|