Fix NoMethodError for WebHook
What does this MR do and why?
Contributes to #404787 (closed)
Problem
It's possible to have url_variables: nil
value. When it happens, the
code raises NoMethodError.
Solution
- Use
blank?
method that can handlenil
values. - Add a test to verify the fix
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin