coverity#705808 Dereference before null check
Change-Id: Ibeaf8989e54017f7cf30a4ffc3f639cd43983d03
This commit is contained in:
parent
fddde2b74a
commit
ec76f39ab5
@ -969,11 +969,11 @@ sal_Bool OQueryTableView::ExistsAVisitedConn(const OQueryTableWindow* pFrom) con
|
||||
OQueryTableConnection* pTemp = static_cast<OQueryTableConnection*>(*aIter);
|
||||
if (pTemp->IsVisited() &&
|
||||
(pFrom == static_cast< OQueryTableWindow*>(pTemp->GetSourceWin()) || pFrom == static_cast< OQueryTableWindow*>(pTemp->GetDestWin())))
|
||||
return pTemp != NULL;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return sal_False;
|
||||
return false;
|
||||
}
|
||||
|
||||
void OQueryTableView::onNoColumns_throw()
|
||||
|
Loading…
x
Reference in New Issue
Block a user