Issue ID 0004230 : Fixing a crash in chamfer command. Putting a null check for the function return value
[skip ci]
This commit is contained in:
committed by
wmayer
parent
ae7ebde4e3
commit
28d67eba2e
@@ -786,7 +786,8 @@ void Document::slotChangedObject(const App::DocumentObject& Obj, const App::Prop
|
||||
&& d->_editingObject
|
||||
&& d->_editViewProviderParent
|
||||
&& (Prop.isDerivedFrom(App::PropertyPlacement::getClassTypeId())
|
||||
|| strstr(Prop.getName(),"Scale"))
|
||||
// Issue ID 0004230 : getName() can return null in which case strstr() crashes
|
||||
|| (Prop.getName() && strstr(Prop.getName(),"Scale")))
|
||||
&& d->_editObjs.count(&Obj))
|
||||
{
|
||||
Base::Matrix4D mat;
|
||||
|
||||
Reference in New Issue
Block a user