From f9ac8942478221569740c32f35e1e0509f8fb95f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 3 Jul 2014 09:22:41 +0100 Subject: clang scan-build: Called C++ object pointer is null, a good catch Change-Id: I4fbb37560f7b20fd6854ba9bb8d017352be679b6 --- framework/source/services/tabwindowservice.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'framework') diff --git a/framework/source/services/tabwindowservice.cxx b/framework/source/services/tabwindowservice.cxx index 9646de95ca84..f445406c0cdb 100644 --- a/framework/source/services/tabwindowservice.cxx +++ b/framework/source/services/tabwindowservice.cxx @@ -421,11 +421,9 @@ css::uno::Any SAL_CALL TabWindowService::impl_getPropertyValue(const OUString& / } // TabWindowService - IMPL_LINK( TabWindowService, EventListener, VclSimpleEvent*, pEvent ) { - - if ( !pEvent && !pEvent->ISA(VclWindowEvent)) + if (!pEvent || !pEvent->ISA(VclWindowEvent)) return 0; sal_uLong nEventId = pEvent->GetId(); -- cgit