Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix null pointer deref in diff if no Upstream (#3549)
* Fix null pointer deref in diff if no Upstream Running `kpt pkg diff` without an upstream set panics because we attempt to dereference `kptFile.Upstream` without checking to see if it is nil. This commit adds a check and returns early if necessary. * Update internal/util/diff/diff.go Co-authored-by: Natasha Sarkar <natashasarkar@google.com> Co-authored-by: Natasha Sarkar <natashasarkar@google.com>
- Loading branch information