IndexOutOfRangeException but it's not out of range??

I’ve been getting this error in the Editor but nothing in the IDE. Even though the code seems to work perfectly, this message gets spammed and I have no idea how to fix it.
I used the debug log and the pointer is only ever 0 or 1, and the length of points is always 2.
Here is my code:

Try putting the Debug.Log before the point in which you try and access your data structure. It won’t ever print out the problem numbers because the code would crash before it logs.

Make sure you didn’t drop this script on another GameObject as well, one you didn’t intend to.

Here are some notes on IndexOutOfRangeException and ArgumentOutOfRangeException:

http://plbm.com/?p=236

Steps to success:

  • find which collection it is (critical first step!)
  • find out why it has fewer items than you expect
  • fix whatever logic is making the indexing value exceed the collection
  • remember you might have more than one instance of this script in your scene/prefab

That was it, thanks!
I spent so long trying to fix this and it was such a simple fix lol