Skip to content

Commit

Permalink
Merge pull request containers#673 from vrothberg/fix-tree
Browse files Browse the repository at this point in the history
libimage: image tree: fix nil deref
  • Loading branch information
openshift-merge-robot authored Jul 9, 2021
2 parents 5f19d68 + ac23ea1 commit a38eda6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libimage/image_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ func (i *Image) Tree(traverseChildren bool) (string, error) {
}

func imageTreeTraverseChildren(node *layerNode, parent gotree.Tree) error {
if node.layer == nil {
return nil
}

var tags string
repoTags, err := node.repoTags()
if err != nil {
Expand Down

0 comments on commit a38eda6

Please sign in to comment.