Files
create/src/Mod
Jiří Mácha 69898555c6 Assembly: fix segfault when Part property of Joint Connector is missing
FreeCAD is crashing during 'Solve Assembly' call if the Part property
(Assembly/Joints/Fixed/Joint Connector 1/Part1 or Assembly/Joints/Fixed/Joint
Connector 2/Part2) of fixed Joint is unset.

Steps to reproduce:

 - make simple Assembly e.g. of two cubes with Fixed joint
 - Select Fixed joint in the tree and go-to property 'Data' tab
 - Select Part1 or Part2 of 'Joint Connector 1' or 'Joint Connector 2'
   and remove this reference
 - call 'Solve Assembly' now

The FreeCAD will crash here because the call
App::DocumentObject* part = getLinkObjFromProp(joint, propPartName);
will return NULL pointer.

The property Part1 or Part2 can get empty (unset) during usual
construction operations - during changing construction history
and it can be very hard to find the cause of FreeCAD crash on a big
model.

This patch tries to fix the crash in such situation.
2024-04-08 18:00:40 +02:00
..
2024-04-04 07:39:58 -05:00
2024-04-04 07:39:58 -05:00
2024-04-04 07:39:58 -05:00
2024-03-25 18:08:22 -05:00
2024-04-04 07:39:58 -05:00
2024-04-04 07:39:58 -05:00
2024-03-05 08:54:36 -06:00
2024-04-08 17:58:28 +02:00
2024-04-04 07:39:58 -05:00
2024-03-05 08:54:36 -06:00
2024-03-25 18:08:22 -05:00
2024-03-04 11:18:41 -06:00