Closed tst-jlarocco closed 3 years ago
Describe the bug In this code block, asseItem should not be accessed until after the NULL check.
AssetItem* assetItem = dynamic_cast<AssetItem*>(item); std::string san = shortAssetName(assetItem->getAssetHandle()->getName().toStdString().c_str()); if (assetItem != NULL && getName() != san.c_str()) { iconView->clearSelection(); }
Additional context
Found by cppcheck.
Describe the bug In this code block, asseItem should not be accessed until after the NULL check.
Additional context
Found by cppcheck.