diff --git a/src/App/Application.cpp b/src/App/Application.cpp index 03aba22b92..c149e20df4 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -678,7 +678,7 @@ Document* Application::openDocument(const char * FileName, DocumentCreateFlags c } Document *Application::getDocumentByPath(const char *path, PathMatchMode checkCanonical) const { - if(!path || path[0] == '\0') + if(Base::Tools::isNullOrEmpty(path)) return nullptr; if(DocFileMap.empty()) { for(const auto &v : DocMap) {