Page MenuHome

Fix T92532: Missing null checks in IDPropertyManager.update_from
ClosedPublic

Authored by Hans Goudey (HooglyBoogly) on Oct 28 2021, 9:14 PM.

Details

Summary

Calling it with a None argument, or no arguments, or with a property
that is missing UI data for some reason would fail. There is no
particular reason why ensuring those things don't happen is helpful,
so just add null chekcs for safety.

Diff Detail

Repository
rB Blender
Branch
fix-update-from-crash (branched from master)
Build Status
Buildable 18292
Build 18292: arc lint + arc unit

Event Timeline

Hans Goudey (HooglyBoogly) requested review of this revision.Oct 28 2021, 9:14 PM
Hans Goudey (HooglyBoogly) created this revision.
Campbell Barton (campbellbarton) added inline comments.
source/blender/python/generic/idprop_py_ui_api.c
625

ui_manager_src NULL check is redundant, otherwise LGTM.

This revision is now accepted and ready to land.Nov 2 2021, 12:23 PM