diff --git a/src/plugins/docker/dockerdevice.cpp b/src/plugins/docker/dockerdevice.cpp index 4aa38e46d2e..e4e8bd64a3d 100644 --- a/src/plugins/docker/dockerdevice.cpp +++ b/src/plugins/docker/dockerdevice.cpp @@ -805,6 +805,9 @@ bool DockerDevice::handlesFile(const FilePath &filePath) const bool DockerDevice::ensureReachable(const FilePath &other) const { + if (other.isEmpty()) + return false; + if (other.isSameDevice(rootPath())) return true;