PVS: V1004 A pointer was used unsafely after it was verified against nullptr

This commit is contained in:
wmayer
2020-07-17 14:26:29 +02:00
parent 9ee3cd222b
commit 9424395afc
6 changed files with 14 additions and 11 deletions

View File

@@ -414,11 +414,11 @@ PyObject* ViewProviderPy::partialRender(PyObject* args)
#endif
else {
std::string error = std::string("type must be str or unicode");
if(item) {
if (item) {
error += " not, ";
error += item->ob_type->tp_name;
}
throw Base::TypeError(error + item->ob_type->tp_name);
throw Base::TypeError(error);
}
}
}