sofa-framework / sofa

Real-time multi-physics simulation with an emphasis on medical simulation.
https://www.sofa-framework.org
GNU Lesser General Public License v2.1
871 stars 297 forks source link

[Contact] Fix crash if collision models are not provided #4710

Closed alxbilger closed 2 weeks ago

alxbilger commented 2 weeks ago

if collisionModel1, the collModelPath1 is affected to nullptr, which leads to a crash.


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

fredroy commented 2 weeks ago

[ci-build][with-all-tests]