Open mckpm opened 6 years ago
invert()
is being called here:
At the crash point, invert()
is doing this:
So my initial guess would be that t2.square()
returns null
at some point either before or during that loop, and the subsequent iteration then has t2
set to null
, causing the NPE. However, Ed25519FieldElement.square()
never returns null
(it does deterministic maths and then calls a constructor, which can never return null but does potentially throw an IAE). So... I'm going to leave this open until someone else can reproduce this.
We occasionally see this crash in the field (haven't managed to reproduce):