diff --git a/runnercontext.cpp b/runnercontext.cpp index bb1d9f682..9226c717e 100644 --- a/runnercontext.cpp +++ b/runnercontext.cpp @@ -128,6 +128,10 @@ bool correctPathCase(const QString& path, QString &corrected) components.pop_back(); } + if (components.isEmpty()) { + return true; + } + QString correctPath; const unsigned initialComponents = components.size(); for (unsigned i = 0; i < initialComponents - 1; i ++) {