Skip to content

Commit

Permalink
Avoid nil dereference in baseosmgr
Browse files Browse the repository at this point in the history
- avoid nil dereference

Signed-off-by: Mikhail Malyshev <mike.malyshev@gmail.com>
(cherry picked from commit 6bac1ef)
  • Loading branch information
rucoder authored and OhmSpectator committed Feb 4, 2025
1 parent 8a07a46 commit 287f2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pillar/cmd/baseosmgr/handledownload.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func installDownloadedObjects(ctx *baseOsMgrContext, uuidStr, finalObjDir string

if status == nil {
return changed, proceed, fmt.Errorf("installDownloadedObjects(%s) cannot found contentTree %s",
uuidStr, status.ContentID)
uuidStr, contentID)
}

if status.State == types.LOADED {
Expand Down

0 comments on commit 287f2c1

Please sign in to comment.