Same issue here (3 different seeds tested).
edit: after looking at the stacktrace... how does one manage to attempt to view an element in an array outside of bounds? You should already be checking if its null, and you shouldnt be looking by explicit index.
So if I'd redacted the last few lines, this would've been valid? Stack traces don't lie
Issue persists in 18w43b