[yast-commit] r66207 - /trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc
Author: mvidner Date: Mon Oct 3 17:23:42 2011 New Revision: 66207 URL: http://svn.opensuse.org/viewcvs/yast?rev=66207&view=rev Log: Don't dereference end(). Modified: trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc Modified: trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc?rev=66207&r1=66206&r2=66207&view=diff ============================================================================== --- trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc (original) +++ trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc Mon Oct 3 17:23:42 2011 @@ -107,7 +107,10 @@ YRuby::refcount_map_t& vrby = YRuby::yRuby()->value_references_from_ycp; YRuby::refcount_map_t::iterator it = vrby.find(value); - assert(it != vrby.end()); + if (it == vrby.end()) { + // YRuby got re-constructed during final cleanup; do nothing + return; + } int & count = it->second; --count; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mvidner@svn2.opensuse.org