diff --git a/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp b/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp index 50bc03ba8b..76b911baca 100644 --- a/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp +++ b/Userland/DevTools/HackStudio/LanguageServers/Cpp/ParserAutoComplete.cpp @@ -60,7 +60,8 @@ const ParserAutoComplete::DocumentData& ParserAutoComplete::get_document_data(co OwnPtr ParserAutoComplete::create_document_data_for(const String& file) { auto document = filedb().get(file); - VERIFY(document); + if (!document) + return {}; auto content = document->text(); auto document_data = make(document->text(), file); auto root = document_data->parser.parse();