crash if avio context is null