Skip to content

Commit

Permalink
avoid potential crash
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Oct 1, 2024
1 parent 75e8632 commit 7578868
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/latexdocument.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2468,6 +2468,7 @@ std::pair<bool,bool> LatexDocuments::addDocsToLoad(QStringList filenames, LatexD
if(conf->autoLoadChildren){
LatexDocument *docForUpdate=nullptr;
for(const QString &fn:filenames){
if(fn.isEmpty()) continue; // avoid potential crash
LatexDocument *doc = findDocumentFromName(fn);
if(doc==nullptr){
doc=new LatexDocument();
Expand Down

0 comments on commit 7578868

Please sign in to comment.