fix segfault panic

This commit is contained in:
ryanfkeepers 2023-02-07 13:17:59 -07:00
parent 1b1629e09c
commit 43c47d678e

View File

@ -202,7 +202,12 @@ func (cp *corsoProgress) FinishedFile(relativePath string, err error) {
!d.cached,
*d.info)
folders := details.FolderEntriesForPath(parent, d.locationPath.ToBuilder())
var locPB *path.Builder
if d.locationPath != nil {
locPB = d.locationPath.ToBuilder()
}
folders := details.FolderEntriesForPath(parent, locPB)
cp.deets.AddFoldersForItem(
folders,
*d.info,