Mailinglist Archive: yast-commit (815 mails)

< Previous Next >
[yast-commit] r39865 - /branches/tmp/sh/mod-ui/ncurses/src/pkg/NCPkgPopupTree.cc
  • From: gs@xxxxxxxxxxxxxxxx
  • Date: Wed, 01 Aug 2007 10:09:49 -0000
  • Message-id: <20070801100949.EB99229C2D@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages