Tag: cws_src680_dba23a User: fs Date: 2007/02/21 02:34:06 Modified: dba/dbaccess/source/ui/querydesign/QueryTableView.cxx
Log: #145033# addConnections: survive (invalid) NULL columns File Changes: Directory: /dba/dbaccess/source/ui/querydesign/ =============================================== File [changed]: QueryTableView.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/querydesign/QueryTableView.cxx?r1=1.40&r2=1.40.74.1 Delta lines: +8 -4 ------------------- --- QueryTableView.cxx 17 Sep 2006 07:23:21 -0000 1.40 +++ QueryTableView.cxx 21 Feb 2007 10:34:03 -0000 1.40.74.1 @@ -4,9 +4,9 @@ * * $RCSfile: QueryTableView.cxx,v $ * - * $Revision: 1.40 $ + * $Revision: 1.40.74.1 $ * - * last change: $Author: obo $ $Date: 2006/09/17 07:23:21 $ + * last change: $Author: fs $ $Date: 2007/02/21 10:34:03 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -270,7 +270,11 @@ for(sal_Int32 i=0;pBegin != pEnd;++pBegin,++i) { Reference<XPropertySet> xColumn; - ::cppu::extractInterface(xColumn,_rxSourceForeignKeyColumns->getByName(*pBegin)); + if ( !( _rxSourceForeignKeyColumns->getByName(*pBegin) >>= xColumn ) ) + { + OSL_ENSURE( false, "addConnections: invalid foreign key column!" ); + continue; + } aNewConnData.SetFieldType(JTCS_FROM,TAB_NORMAL_FIELD); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
