![](https://seccdn.libravatar.org/avatar/8a451195df9bfe79b11fe6fa7da429d7.jpg?s=120&d=mm&r=g)
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/Y2RubyType... ============================================================================== --- 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