From c9b840356990bfeadfc8c1954938dd112abfa461 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Thu, 23 Nov 2017 07:19:55 +0800 Subject: [PATCH] add_fields exception protection --- lib/builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder.rb b/lib/builder.rb index 669ad233..c3b88280 100644 --- a/lib/builder.rb +++ b/lib/builder.rb @@ -178,7 +178,7 @@ class CustomWizard::Builder value = data[f['value']] key = f['key'] - if key.include?('custom_fields') + if key && key.include?('custom_fields') keyArr = key.split('.') if keyArr.length === 3