Skip to content

Commit

Permalink
Current version of Psi+ is 1.5.2054
Browse files Browse the repository at this point in the history
It is based on:
* psi: ce742e62
* plugins: 347230b
* psimedia: 478567e
* resources: fc4cfc1
  • Loading branch information
tehnick committed Oct 6, 2024
1 parent 874f300 commit 76d0681
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
11 changes: 3 additions & 8 deletions src/serverlistquerier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,12 @@ std::optional<QStringList> ServerListQuerier::parseJson(const QByteArray &data)
QJsonObject providerObj = providerValue.toObject();
auto jidIt = providerObj.find("jid");

if (jidIt == providerObj.end() || !jidIt->isString()) {
QString jid;
if (jidIt == providerObj.end() || !jidIt->isString() || (jid = jidIt->toString()).isEmpty()) {
parsingErrorOccurred = true;
continue; // Skip if "jid" is not found or is not a string
}

QString jid = jidIt->toString();
if (!jid.isEmpty()) {
jidList.append(jid);
} else {
parsingErrorOccurred = true; // Handle empty jid case
}
jidList.append(jid);
}

// Emit an error if the list is empty and there was a parsing error
Expand Down
2 changes: 2 additions & 0 deletions src/serverlistquerier.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <QObject>
#include <QUrl>

#include <optional>

class QNetworkAccessManager;

class ServerListQuerier : public QObject {
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.2053 (2024-10-06, b8bf8dae)
1.5.2054 (2024-10-06, ce742e62)

0 comments on commit 76d0681

Please sign in to comment.