Not sure... 

I agree this class of bug is inevitable, but it was a simple programming error, and putting the stacktrace into Google lead you directly to the right answer. There was nothing inherently complex about it.