Handle case where no line positions are provided