Author: gs Date: Thu Oct 18 12:03:01 2007 New Revision: 41456 URL: http://svn.opensuse.org/viewcvs/yast?rev=41456&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=41456&r1=41455&r2=41456&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc (original) +++ branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc Thu Oct 18 12:03:01 2007 @@ -45,8 +45,11 @@ // create the layout (the NCTree) createLayout( NCPkgNames::RpmTreeLabel() ); - // clone the tree (fill the NCTree) - cloneTree( pkg->rpmGroupsTree()->root(), 0 ); + if ( pkg->rpmGroupsTree() ) + { + // clone the tree (fill the NCTree) + cloneTree( pkg->rpmGroupsTree()->root(), 0 ); + } } /////////////////////////////////////////////////////////////////// @@ -71,7 +74,6 @@ // void NCPkgPopupTree::createLayout( const string & label ) { - YWidgetOpt opt; opt.notifyMode.setValue( true ); // FIXME @@ -84,7 +86,9 @@ // create the tree filterTree = new NCTree( split, label ); - + YUI_CHECK_NEW( filterTree ); + + filterTree->setNotify( true ); } /////////////////////////////////////////////////////////////////// -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org