Skip to content

Commit

Permalink
Fixed possible crash on closing FRB
Browse files Browse the repository at this point in the history
  • Loading branch information
vchelaru committed Nov 8, 2023
1 parent fb54968 commit c4a8964
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ public IEnumerable<FilePath> GetAllFilesNeededOnDisk()
ReferencedFileSave[] GetAllRfses()
{
var allRfses =
GlueProject.Entities.SelectMany(item => item.ReferencedFiles)
GlueProject?.Entities.SelectMany(item => item.ReferencedFiles)
.Concat(GlueProject.Screens.SelectMany(item2 => item2.ReferencedFiles))
.Concat(GlueProject.GlobalFiles)
.ToArray();

return allRfses;
return allRfses ?? new ReferencedFileSave[0];
}

public List<FilePath> GetAllReferencedFileNames()
Expand Down

0 comments on commit c4a8964

Please sign in to comment.