Skip to content

Commit

Permalink
Merge pull request #95 from mittwald/fix/repl-nil-pointer
Browse files Browse the repository at this point in the history
fix nil-pointer exception at initial replication reconciliation
  • Loading branch information
jkmw authored Dec 15, 2021
2 parents 3ca9aba + 1cd1d24 commit 1669079
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/registries/replication_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@ func (r *ReplicationReconciler) assertExistingReplication(ctx context.Context, h
rReq.Name); err != nil {
return err
}
heldReplication, err = harborClient.GetReplicationPolicyByName(ctx, replication.Spec.Name)
if err != nil {
return err
}
} else {
return err
}
Expand Down

0 comments on commit 1669079

Please sign in to comment.