Skip to content
Browse files

not processing empty record

  • Loading branch information...
1 parent 0fe88f3 commit 47556cdfa3818ba1974d39c27fb771a254c7571a @joshbronson joshbronson committed Jul 30, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/wukong/widget/stringifier.rb
View
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")

0 comments on commit 47556cd

Please sign in to comment.
Something went wrong with that request. Please try again.