File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ func normalizeUnions(w *mergingWalker) error {
3535 }
3636
3737 var old value.Map
38- if w .lhs != nil {
38+ if w .lhs != nil && ! w . lhs . IsNull () {
3939 old = w .lhs .Map ()
4040 }
4141 for _ , union := range atom .Map .Unions {
@@ -57,7 +57,7 @@ func normalizeUnionsApply(w *mergingWalker) error {
5757 }
5858
5959 var old value.Map
60- if w .lhs != nil {
60+ if w .lhs != nil && ! w . lhs . IsNull () {
6161 old = w .lhs .Map ()
6262 }
6363
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ func (v valueUnstructured) IsMap() bool {
5151
5252func (v valueUnstructured ) Map () Map {
5353 if v .Value == nil {
54- return nil
54+ panic ( "invalid nil" )
5555 }
5656 switch t := v .Value .(type ) {
5757 case map [string ]interface {}:
You can’t perform that action at this time.
0 commit comments