can segment be null?