diff --git a/src/mirall/folder.cpp b/src/mirall/folder.cpp index 91bbbf8e6..6ba5abfa8 100644 --- a/src/mirall/folder.cpp +++ b/src/mirall/folder.cpp @@ -91,6 +91,14 @@ Folder::Folder(const QString &alias, const QString &path, const QString& secondP bool Folder::init() { + Account *account = AccountManager::instance()->account(); + if (!account) { + // Normaly this should not happen, but it could be that there is something + // wrong with the config and it is better not to crash. + qWarning() << "WRN: No account configured, can't sync"; + return false; + } + QString url = Utility::toCSyncScheme(remoteUrl().toString()); QString localpath = path();