rule application protected from indexOutOfBoundsException