diff --git a/src/libs/utils/filepath.cpp b/src/libs/utils/filepath.cpp index f2b3f2a19a9..4bdf44f0361 100644 --- a/src/libs/utils/filepath.cpp +++ b/src/libs/utils/filepath.cpp @@ -828,6 +828,10 @@ DeviceFileAccess *FilePath::fileAccess() const bool FilePath::hasFileAccess() const { + // Happens during startup and in tst_fsengine + if (!s_deviceHooks.fileAccess) + return false; + DeviceFileAccess *access = s_deviceHooks.fileAccess(*this); return access; }