diff options
author | George Hazan <ghazan@miranda.im> | 2020-08-19 14:49:02 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-08-19 14:49:02 +0300 |
commit | dac93be80d3ee76f81bfff81104fc9c591441c33 (patch) | |
tree | 20f2a0f02f75a92390e3274f3d4e01739369206c /plugins/NewStory/src | |
parent | 833b21a85e056227ad6b161e1220ddac44d56d7d (diff) |
fixes #2543 (NewStory: падает при экспорте системной истории)
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r-- | plugins/NewStory/src/history.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp index b72b3543fb..f2d7a09c61 100644 --- a/plugins/NewStory/src/history.cpp +++ b/plugins/NewStory/src/history.cpp @@ -679,7 +679,8 @@ public: //export contact info JSONNode pRoot, pInfo, pHist(JSON_ARRAY); pInfo.set_name("info"); - pInfo.push_back(JSONNode("proto", proto)); + if (proto) + pInfo.push_back(JSONNode("proto", proto)); if (id != NULL) pInfo.push_back(JSONNode(uid, T2Utf(id).get())); |