Author: gs Date: Wed Nov 21 11:47:09 2007 New Revision: 42255 URL: http://svn.opensuse.org/viewcvs/yast?rev=42255&view=rev Log: check NCTableLine *cline Modified: trunk/ncurses/src/NCTable.cc Modified: trunk/ncurses/src/NCTable.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses/src/NCTable.cc?rev=42255&r1=42254&r2=42255&view=diff ============================================================================== --- trunk/ncurses/src/NCTable.cc (original) +++ trunk/ncurses/src/NCTable.cc Wed Nov 21 11:47:09 2007 @@ -268,7 +268,10 @@ YItem * NCTable::getCurrentItemPointer() { const NCTableLine *cline = myPad()->GetLine( myPad()->CurPos().L ); - return cline->origItem(); + if ( cline ) + return cline->origItem(); + else + return 0; } /////////////////////////////////////////////////////////////////// @@ -332,7 +335,8 @@ void NCTable::selectCurrentItem() { const NCTableLine *cline = myPad()->GetLine( myPad()->CurPos().L ); - YTable::selectItem( cline->origItem() ); + if ( cline ) + YTable::selectItem( cline->origItem() ); } /////////////////////////////////////////////////////////////////// -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org