mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-11 15:29:51 -05:00
Handle possible nullptr exception
This commit is contained in:
parent
2c03738580
commit
b0fa6b5e68
@ -2674,6 +2674,10 @@ Disable safe saves and try again?</source>
|
||||
<source>Do you want to remove the passkey from this entry?</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Could not upload the database. Remote handler was not initialized.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>EditEntryWidget</name>
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user