Parcourir la source

add_fields exception protection

Angus McLeod il y a 7 ans
Parent
commit
c9b8403569
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/builder.rb

+ 1 - 1
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