[Libreoffice-commits] .: sc/source
Julien Nabet
serval2412 at kemper.freedesktop.org
Sat Mar 10 10:59:39 PST 2012
sc/source/ui/vba/vbarange.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit c604a738f48ffa4c12f7c9801d03a146303d3123
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sat Mar 10 19:58:39 2012 +0100
Fix Possible null pointer dereference
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index 6ae2d08..d8c3a9f 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -4527,10 +4527,10 @@ ScVbaRange::AutoFilter( const uno::Any& Field, const uno::Any& Criteria1, const
if ( xCurrent.is() )
{
ScVbaRange* pRange = getImplementation( xCurrent );
- if ( pRange->isSingleCellRange() )
- throw uno::RuntimeException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Can't create AutoFilter") ), uno::Reference< uno::XInterface >() );
if ( pRange )
{
+ if ( pRange->isSingleCellRange() )
+ throw uno::RuntimeException( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Can't create AutoFilter") ), uno::Reference< uno::XInterface >() );
RangeHelper currentRegion( pRange->mxRange );
autoFiltAddress = currentRegion.getCellRangeAddressable()->getRangeAddress();
}
More information about the Libreoffice-commits
mailing list