coverity#735322 Unchecked return value

Change-Id: I12f9392813f5fdd6f2d36398ea00a5cad812cd26
This commit is contained in:
Caolán McNamara
2014-10-11 20:38:48 +01:00
parent 68bb74ddab
commit 63fa3ba80e

View File

@@ -896,7 +896,8 @@ ScNamedRangeObj* ScLocalNamedRangesObj::GetObjectByIndex_Impl( sal_uInt16 nIndex
OUString aName = mxSheet->getName();
ScDocument& rDoc = pDocShell->GetDocument();
SCTAB nTab;
rDoc.GetTable( aName, nTab );
if (!rDoc.GetTable(aName, nTab))
return NULL;
ScRangeName* pNames = rDoc.GetRangeName( nTab );
if (!pNames)