The "trough" case in the do_smooth_draw_shadow function tries to get attirubtes of the variable "part" without making sure part is non-NULL. In fact it is NOT guaranteed to be non-NULL in this function and crashes the new version of xfce4-taskmanager.
Fix but possibly not a very good one
You did this in another place too