Fix scan coverity issues:
CID 184294: Uncaught exception CID 183597: Unchecked return value CID 175809: Dereference before null check CID 175810: Logically dead code CID 133000: Uninitialized scalar variable CID 133001: Uninitialized scalar variable CID 183591: Explicit null dereferenced
This commit is contained in:
@@ -158,7 +158,7 @@ void DlgPropertyLink::findObjects(bool on, const QString& searchText)
|
||||
std::vector<App::DocumentObject*> ignoreList;
|
||||
App::DocumentObject* par = doc->getObject((const char*)parName.toLatin1());
|
||||
App::Property* prop = par->getPropertyByName((const char*)proName.toLatin1());
|
||||
if (par) {
|
||||
if (prop) {
|
||||
// for multi-selection we need all objects
|
||||
if (isSingleSelection) {
|
||||
ignoreList = par->getOutListOfProperty(prop);
|
||||
|
||||
Reference in New Issue
Block a user