Sfoglia il codice sorgente

add_fields exception protection

Angus McLeod 7 anni fa
parent
commit
c9b8403569
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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