fix Coverity issues
This commit is contained in:
@@ -208,6 +208,8 @@ std::vector<App::DocumentObject*> TaskFeaturePick::buildFeatures() {
|
||||
int index = 0;
|
||||
std::vector<App::DocumentObject*> result;
|
||||
auto activeBody = PartDesignGui::getBody(false);
|
||||
if (!activeBody)
|
||||
return result;
|
||||
auto activePart = PartDesignGui::getPartFor(activeBody, false);
|
||||
|
||||
for (std::vector<featureStatus>::const_iterator st = statuses.begin(); st != statuses.end(); st++) {
|
||||
|
||||
Reference in New Issue
Block a user