diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-12-19 23:32:56 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-12-19 23:32:56 -0500 |
commit | f644f284d46e36408f295e665967fcff6866d195 (patch) | |
tree | 9529d57fb64695b032e8b1324af9a8c265ab1f92 /bin | |
parent | a129362daeaafb0288e4d75f816973a46a7c9d16 (diff) |
bin/meta-normalize-stdio: fix nil object exception
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/meta-normalize-stdio | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/meta-normalize-stdio b/bin/meta-normalize-stdio index c49dcd9..13e70ff 100755 --- a/bin/meta-normalize-stdio +++ b/bin/meta-normalize-stdio @@ -45,7 +45,9 @@ def unordered_map1(validator) order = Hash[[*validator.keys.map.with_index]] hash = Hash[hash.sort_by{|k,v| order[k] || _unknown(name,k) }] hash.keys.each{|k| - hash[k] = validator[k].call("#{name}[#{k.inspect}]", hash[k]) + if validator[k] + hash[k] = validator[k].call("#{name}[#{k.inspect}]", hash[k]) + end } end hash |