Kaydet (Commit) f51f202f authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705469 Dereference null return value

Change-Id: I8880f0f441456fe1951145551ef6dfa0e9d65b66
üst 756d36a1
...@@ -610,7 +610,10 @@ void XclExpNameManagerImpl::CreateBuiltInNames() ...@@ -610,7 +610,10 @@ void XclExpNameManagerImpl::CreateBuiltInNames()
ScRangeList aRangeList; ScRangeList aRangeList;
for( sal_uInt16 nIdx = 0, nCount = rDoc.GetPrintRangeCount( nScTab ); nIdx < nCount; ++nIdx ) for( sal_uInt16 nIdx = 0, nCount = rDoc.GetPrintRangeCount( nScTab ); nIdx < nCount; ++nIdx )
{ {
ScRange aRange( *rDoc.GetPrintRange( nScTab, nIdx ) ); const ScRange* pPrintRange = rDoc.GetPrintRange( nScTab, nIdx );
if (!pPrintRange)
continue;
ScRange aRange( *pPrintRange );
// Calc document does not care about sheet index in print ranges // Calc document does not care about sheet index in print ranges
aRange.aStart.SetTab( nScTab ); aRange.aStart.SetTab( nScTab );
aRange.aEnd.SetTab( nScTab ); aRange.aEnd.SetTab( nScTab );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment