If ob was NULL it would crash in the else part of the if statement. If we really think we may run into that (which we should not) we can just assert or add a if (ob == NULL) return; in the top of the function.
If ob was NULL it would crash in the else part of the if statement. If we really think we may run into that (which we should not) we can just assert or add a if (ob == NULL) return; in the top of the function.