02.04.2019, 14:01
From the looks this seems unlikely to produce the error as you are accessing index 0 which is definitely not out of bounds.
Could you share the code where you use it (maybe a few lines before and after)?
Could you share the code where you use it (maybe a few lines before and after)?