Skip to content

Commit

Permalink
Fix nil pointer dereference in CompareAppState (argoproj#1234) (argop…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmt authored Mar 8, 2019
1 parent 9a7fece commit 461d8c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controller/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@ func (m *appStateManager) CompareAppState(app *v1alpha1.Application, revision st
conditions: conditions,
hooks: hooks,
diffNormalizer: diffNormalizer,
appSourceType: v1alpha1.ApplicationSourceType(manifestInfo.SourceType),
}
if manifestInfo != nil {
compRes.appSourceType = v1alpha1.ApplicationSourceType(manifestInfo.SourceType)
}
return &compRes, nil
}
Expand Down

0 comments on commit 461d8c9

Please sign in to comment.