This project is read-only.
1

Closed

CompareTo method will always throw NullReferenceException

description

In CompareTo, the method checks to see if the second argument is null by simply checking with an equality operator. The problem is that the first line in said operator is if (first.state.Data == second.state.Data), and as such it will always throw an exception (because second will always be null).
Closed Nov 23, 2010 at 2:05 AM by mgray

comments

ShaRose wrote Nov 21, 2010 at 2:44 AM

Update: Same issue with the Equals method.

wrote Nov 21, 2010 at 11:15 AM

wrote Nov 21, 2010 at 11:51 AM

mgray wrote Nov 21, 2010 at 11:52 AM

@ShaRose
Feel free to go and test and make sure all of what you found is resolved, I think I covered all of it. One day we'll have proper unit tests.

wrote Nov 23, 2010 at 2:05 AM

Resolved with changeset 59999.

wrote Feb 2, 2013 at 2:15 AM

wrote May 8, 2013 at 6:09 PM