The return value for get_frame_function is usually checked for null. OK?