No assert but empty URL and verify if sApp has been deleted

This commit is contained in:
Klaus Basan
2018-04-02 02:24:52 +02:00
parent 574bc8b51b
commit f8d16555aa

View File

@@ -20,6 +20,7 @@
#include "blackmisc/logcategory.h"
#include "blackmisc/logcategorylist.h"
#include "blackmisc/logmessage.h"
#include "blackmisc/verify.h"
#include <QByteArray>
#include <QJsonDocument>
@@ -503,7 +504,9 @@ namespace BlackCore
CUrl CDatabaseReader::getBaseUrl(CDbFlags::DataRetrievalModeFlag mode) const
{
Q_ASSERT_X(sApp, Q_FUNC_INFO, "Missing app object, URLs cannot be obtained");
BLACK_VERIFY_X(sApp, Q_FUNC_INFO, "Missing app object, URLs cannot be obtained");
if (!sApp) { return CUrl(); }
switch (mode)
{
case CDbFlags::DbReading: