[yast-commit] r39865 - /branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc
Author: gs Date: Wed Aug 1 12:09:49 2007 New Revision: 39865 URL: http://svn.opensuse.org/viewcvs/yast?rev=39865&view=rev Log: check pointer Modified: branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc Modified: branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc?rev=39865&r1=39864&r2=39865&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc Wed Aug 1 12:09:49 2007 @@ -263,5 +263,10 @@ YStringTreeItem * NCPkgPopupTree::getDefaultGroup( ) { - return packager->rpmGroupsTree()->root()->firstChild(); + if ( packager && + packager->rpmGroupsTree() && + packager->rpmGroupsTree()->root() ) + return packager->rpmGroupsTree()->root()->firstChild(); + else + return 0; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
gs@svn.opensuse.org