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>
  • Loading branch information
rucoder authored and OhmSpectator committed Jan 31, 2025
1 parent a428302 commit 6bac1ef
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 6bac1ef

Please sign in to comment.