Refactor: ui_draw_popover_back Impossible Null Dereference #119092

Merged
Harley Acheson merged 1 commits from Harley/blender:MenuBackui_draw_popover_backNullBlock into main 2024-03-05 17:39:45 +01:00

1 Commits

Author SHA1 Message Date
Harley Acheson a738c18c34 Fix: ui_draw_popover_back Impossible Null Dereference
The function ui_draw_popover_back has a "block" argument, that is
checked for null, but then has an "else" that would require it and
cause a null pointer dereference. This is an internal function that has
one caller, in response to a condition on that same block's flag.
Therefore this PR removes this function's check for null and the else
code as this condition is not possible.
2024-03-05 08:31:00 -08:00