try catch hm
This commit is contained in:
@@ -965,7 +965,8 @@ void Controller::refreshTransactions() {
|
|||||||
memo = QString::fromStdString(o["memo"].get<json::string_t>());
|
memo = QString::fromStdString(o["memo"].get<json::string_t>());
|
||||||
|
|
||||||
if (memo.startsWith("{")) {
|
if (memo.startsWith("{")) {
|
||||||
|
try
|
||||||
|
{
|
||||||
QJsonDocument headermemo = QJsonDocument::fromJson(memo.toUtf8());
|
QJsonDocument headermemo = QJsonDocument::fromJson(memo.toUtf8());
|
||||||
|
|
||||||
cid = headermemo["cid"].toString();
|
cid = headermemo["cid"].toString();
|
||||||
@@ -974,7 +975,12 @@ void Controller::refreshTransactions() {
|
|||||||
chatModel->addCid(txid, cid);
|
chatModel->addCid(txid, cid);
|
||||||
chatModel->addHeader(txid, headerbytes);
|
chatModel->addHeader(txid, headerbytes);
|
||||||
|
|
||||||
}
|
} catch(...)
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool isNotarized;
|
bool isNotarized;
|
||||||
|
|
||||||
@@ -1191,7 +1197,8 @@ void Controller::refreshTransactions() {
|
|||||||
if (!it["memo"].is_null()) {
|
if (!it["memo"].is_null()) {
|
||||||
|
|
||||||
if (memo.startsWith("{")) {
|
if (memo.startsWith("{")) {
|
||||||
|
try
|
||||||
|
{
|
||||||
QJsonDocument headermemo = QJsonDocument::fromJson(memo.toUtf8());
|
QJsonDocument headermemo = QJsonDocument::fromJson(memo.toUtf8());
|
||||||
|
|
||||||
cid = headermemo["cid"].toString();
|
cid = headermemo["cid"].toString();
|
||||||
@@ -1208,6 +1215,10 @@ void Controller::refreshTransactions() {
|
|||||||
main->addPubkey(requestZaddr, publickey);
|
main->addPubkey(requestZaddr, publickey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} catch(...)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (chatModel->getCidByTx(txid) != QString("0xdeadbeef")){
|
if (chatModel->getCidByTx(txid) != QString("0xdeadbeef")){
|
||||||
|
|||||||
Reference in New Issue
Block a user