Page MenuHome

Fix T92149: Missing check for empty components
ClosedPublic

Authored by Wannes Malfait (Wannes) on Oct 12 2021, 5:10 PM.

Details

Summary

There was only a check for the component but not for if it was empty.
Because the curve fill node produces an empty curve component, a
nullptr was read, causing a crash.

Diff Detail

Repository
rB Blender

Event Timeline

Wannes Malfait (Wannes) requested review of this revision.Oct 12 2021, 5:10 PM
Wannes Malfait (Wannes) created this revision.
Hans Goudey (HooglyBoogly) requested changes to this revision.Oct 12 2021, 5:29 PM

Thanks for the fix. Since the new checks also check whether the component exists, the old checks for the component are unnecessary now, so it can just use if (geometry_set.has_mesh()) {, etc.

This revision now requires changes to proceed.Oct 12 2021, 5:29 PM
  • Cleanup: remove unnecessary checks
This revision is now accepted and ready to land.Oct 12 2021, 5:55 PM