summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-24 09:47:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-24 12:12:23 +0000
commit4f0c8964429d10b9a1ffdfa7d288ceddf2431078 (patch)
tree57723c728e3b3b7064d883fcd5a1439c47fae3cd /svx
parent43babef4fb98e7e867fe6fc2394e5aa81b2aaabd (diff)
coverity#704821 Dereference after null check
Change-Id: Ia4e204799fd6ce473ade87d9110041956408de83
Diffstat (limited to 'svx')
-rw-r--r--svx/source/form/fmshimp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx
index 0f64fd941438..8ec0324ee6b7 100644
--- a/svx/source/form/fmshimp.cxx
+++ b/svx/source/form/fmshimp.cxx
@@ -2289,7 +2289,7 @@ IMPL_LINK(FmXFormShell, OnFoundData, FmFoundRecordInformation*, pfriWhere)
sal_Int32 nGridColumn = m_arrRelativeGridColumn[pfriWhere->nFieldPos];
if (nGridColumn != -1)
{ // dummer weise muss ich mir das Control erst wieder besorgen
- Reference< XControl> xControl( impl_getControl( xControlModel, *pFormObject ) );
+ Reference<XControl> xControl( pFormObject ? impl_getControl( xControlModel, *pFormObject ) : Reference< XControl>() );
Reference< XGrid> xGrid(xControl, UNO_QUERY);
DBG_ASSERT(xGrid.is(), "FmXFormShell::OnFoundData : ungueltiges Control !");
// wenn eine der Asserts anschlaegt, habe ich beim Aufbauen von m_arrSearchedControls wohl was falsch gemacht