null+****@clear*****
null+****@clear*****
Tue Feb 21 14:19:06 JST 2012
SHIMADA Koji 2012-02-21 14:19:06 +0900 (Tue, 21 Feb 2012) New Revision: d08592c8fb287cbaf4db47d41d7e64644aec7d88 Log: Close only if object exists Modified files: lib/logaling/glossary_db.rb Modified: lib/logaling/glossary_db.rb (+3 -3) =================================================================== --- lib/logaling/glossary_db.rb 2012-02-21 14:08:05 +0900 (f0ad81b) +++ lib/logaling/glossary_db.rb 2012-02-21 14:19:06 +0900 (8b6e4e2) @@ -122,9 +122,9 @@ module Logaling :note => term.note || ''} end ensure - snippet.close - records_selected.expression.close - specified_glossary.expression.close + snippet.close if snippet + records_selected.expression.close if records_selected + specified_glossary.expression.close if specified_glossary end def translation_list(glossary_source)