add a NULL check to fail when frame_create fails
This adds a NULL check to fail when frame_create fails. If frame is NULL, I think this can happen crash in frame_resize_inside function if frame is NULL.
This adds a NULL check to fail when frame_create fails. If frame is NULL, I think this can happen crash in frame_resize_inside function if frame is NULL.