[Extractor] Do not check QFile::exists for an empty url
ClosedPublic

Authored by bruns on Oct 30 2018, 2:22 AM.

Details

Summary

In case the file has been removed from the IdTree DB, but is still in the
IndexingLevelDB, documentUrl(id) may return an empty name. Skip the
check if the name isEmpty().

Qt 5.10 issues a runtime warning otherwise - 'Empty filename passed to
function'.

See also D8697.

Diff Detail

Repository
R293 Baloo
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
bruns created this revision.Oct 30 2018, 2:22 AM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptOct 30 2018, 2:22 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
bruns requested review of this revision.Oct 30 2018, 2:22 AM
broulik accepted this revision.Oct 30 2018, 2:41 AM
This revision is now accepted and ready to land.Oct 30 2018, 2:41 AM
This revision was automatically updated to reflect the committed changes.