[Groonga-commit] ranguba/groonga-client-model at 0baaace [master] Stop to instantiate sub record when _key is blank

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Dec 19 14:17:40 JST 2016


Kouhei Sutou	2016-12-19 14:17:40 +0900 (Mon, 19 Dec 2016)

  New Revision: 0baaace27f88b96065383c219d5fdea41fa58c39
  https://github.com/ranguba/groonga-client-model/commit/0baaace27f88b96065383c219d5fdea41fa58c39

  Message:
    Stop to instantiate sub record when _key is blank

  Modified files:
    lib/groonga_client_model/record.rb

  Modified: lib/groonga_client_model/record.rb (+1 -0)
===================================================================
--- lib/groonga_client_model/record.rb    2016-12-19 13:52:56 +0900 (78c2996)
+++ lib/groonga_client_model/record.rb    2016-12-19 14:17:40 +0900 (ee84a92)
@@ -261,6 +261,7 @@ module GroongaClientModel
           sub_record_class.new(sub_record_value)
         end
       else
+        return nil if value["_key"].blank?
         sub_record_class.new(value)
       end
     end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index