diff --git a/uppsrc/ide/background.cpp b/uppsrc/ide/background.cpp index b47a63629..98fb171fc 100644 --- a/uppsrc/ide/background.cpp +++ b/uppsrc/ide/background.cpp @@ -18,6 +18,8 @@ void ForAllNests(Event&> fn) void GatherAllFiles(const String& path, Index& filei, VectorMap& file) { + if(path.GetCount() == 0) + return; Sleep(0); // This is supposed to be superlazy for(FindFile ff(path + "/*.*"); ff && !Thread::IsShutdownThreads(); ff.Next()) if(ff.IsFolder() && *ff.GetName() != '.')