PVS: V595 A pointer was utilized before it was verified against nullptr

This commit is contained in:
wmayer
2020-07-17 17:03:50 +02:00
parent d8ee57c0a1
commit 2a50ac2252
7 changed files with 27 additions and 24 deletions

View File

@@ -412,7 +412,7 @@ void PropertyView::onTimer() {
vp->getPropertyMap(viewList);
// store the properties with <name,id> as key in a map
if (ob) {
{
for (auto prop : dataList) {
if (isPropertyHidden(prop))
continue;
@@ -432,7 +432,7 @@ void PropertyView::onTimer() {
}
}
// the same for the view properties
if (vp) {
{
std::map<std::string, App::Property*>::iterator pt;
for (pt = viewList.begin(); pt != viewList.end(); ++pt) {
if (isPropertyHidden(pt->second))