Skip to content

Handle nil holder_name when executing similar_holder_names_count

Eugie Limpin requested to merge handle-nil-cc-holder-name into master

What does this MR do and why?

Fix NoMethodError bug introduced in Add similar credit card counts to external pipe... (!96264 - merged).

Users::CreditCardValidation.holder_name can be nil but similar_holder_names_count doesn't handle that scenario. This MR updates the method to handle nil holder_name by returning 0 early.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Eugie Limpin

Merge request reports