mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
SyncJournalDb: Handle empty filename and avoid a bogus db query.
This commit is contained in:
parent
d5f1d1c6b2
commit
aaf43bd0d3
@ -777,7 +777,7 @@ SyncJournalFileRecord SyncJournalDb::getFileRecord(const QString& filename)
|
||||
qlonglong phash = getPHash( filename );
|
||||
SyncJournalFileRecord rec;
|
||||
|
||||
if( checkConnect() ) {
|
||||
if( !filename.isEmpty() && checkConnect() ) {
|
||||
_getFileRecordQuery->reset_and_clear_bindings();
|
||||
_getFileRecordQuery->bindValue(1, QString::number(phash));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user