Commit cf415632 authored by Fabian Kosmale's avatar Fabian Kosmale

Check if we actually have a database.

Fixes segfault when running akabei repo
Workaround until we have a proper fix

Reviewed at
parent 96fd05e7
......@@ -311,7 +311,7 @@ void SyncOperation::listRepo(const QString &repo)
if (!db) {
if (!db || !db->database()) {
QTextStream err(stderr);
err << Akabei::errorPrefix << QObject::tr("No repository found!") << endl;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment