Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
fixed null pointer when valusefrom=nil
Browse files Browse the repository at this point in the history
  • Loading branch information
Adolfo Duarte committed Nov 2, 2022
1 parent 437e910 commit 0bcd551
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ func (h *Helper) getListOfProvidersFromRef(clusterBootstrap *runtanzuv1alpha3.Cl

var providers []*unstructured.Unstructured
for _, pkg := range possiblePackages {
if pkg == nil || pkg.ValuesFrom.ProviderRef == nil {
if pkg == nil || pkg.ValuesFrom == nil || pkg.ValuesFrom.ProviderRef == nil {
continue
}
gvr, err := h.GVRHelper.GetGVR(schema.GroupKind{Group: *pkg.ValuesFrom.ProviderRef.APIGroup, Kind: pkg.ValuesFrom.ProviderRef.Kind})
Expand Down

0 comments on commit 0bcd551

Please # to comment.