Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

not processing empty record

  • Loading branch information...
commit 47556cdfa3818ba1974d39c27fb771a254c7571a 1 parent 0fe88f3
@joshbronson joshbronson authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/wukong/widget/stringifier.rb
1  lib/wukong/widget/stringifier.rb
@@ -14,6 +14,7 @@ def process(record)
class FromJson < Stringifier
# FIXME some of this belongs in gorillib factories...
def process(record)
+ return unless record and not record.empty?
obj = MultiJson.load(record)
if obj.respond_to?(:has_key?) && obj.has_key?("_metadata")
metadata_hash = obj.delete("_metadata")
Please sign in to comment.
Something went wrong with that request. Please try again.