diff options
-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())); |