diff --git a/share/translations/keepassxc_en.ts b/share/translations/keepassxc_en.ts
index f18073803..d862fbab4 100644
--- a/share/translations/keepassxc_en.ts
+++ b/share/translations/keepassxc_en.ts
@@ -2674,6 +2674,10 @@ Disable safe saves and try again?
Do you want to remove the passkey from this entry?
+
+ Could not upload the database. Remote handler was not initialized.
+
+ EditEntryWidget
diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp
index 0302889fd..472e434f0 100644
--- a/src/gui/DatabaseWidget.cpp
+++ b/src/gui/DatabaseWidget.cpp
@@ -1135,7 +1135,10 @@ void DatabaseWidget::syncDatabaseWithLockedDatabase(const QString& filePath, con
void DatabaseWidget::uploadAndFinishSync(const RemoteParams* params, RemoteHandler::RemoteResult result)
{
- if (result.success && !params->uploadCommand.isEmpty()) {
+ if (!m_remoteHandler) {
+ result.success = false;
+ result.errorMessage = tr("Could not upload the database. Remote handler was not initialized.");
+ } else if (result.success && !params->uploadCommand.isEmpty()) {
emit updateSyncProgress(75, tr("Uploading..."));
result = m_remoteHandler->upload(params);
}