From aeaf4dd02cffebef6534c4b23f8de5cb235edc5d Mon Sep 17 00:00:00 2001 From: Stefan Schubert Date: Tue, 31 Jul 2007 08:32:10 +0000 Subject: [PATCH] checking if item really exists; #295544 --- zypp/solver/detail/ResolverInfoContainer.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zypp/solver/detail/ResolverInfoContainer.cc b/zypp/solver/detail/ResolverInfoContainer.cc index f64946e..816ba5d 100644 --- a/zypp/solver/detail/ResolverInfoContainer.cc +++ b/zypp/solver/detail/ResolverInfoContainer.cc @@ -23,6 +23,7 @@ #include #include "zypp/solver/detail/ResolverInfoContainer.h" +#include "zypp/base/Logger.h" #include "zypp/solver/detail/Helper.h" ///////////////////////////////////////////////////////////////////////// @@ -171,6 +172,7 @@ ResolverInfoContainer::mentions (PoolItem_Ref item) const // Search item_list for any mention of the item. for (PoolItemList::const_iterator iter = _item_list.begin(); iter != _item_list.end(); iter++) { + MIL << "yyyyyyxx " << item << " xx " << *iter << endl; if ((*iter)->name() == item->name()) { return true; } @@ -183,7 +185,7 @@ ResolverInfoContainer::mentions (PoolItem_Ref item) const void ResolverInfoContainer::addRelatedPoolItem (PoolItem_Ref item) { - if (!mentions(item)) { + if (item && !mentions(item)) { _item_list.push_front (item); } } -- 2.7.4