Bug 11945 - BigInteger throws NullReferenceException in Equals and IsEven for default(BigInteger)
Summary: BigInteger throws NullReferenceException in Equals and IsEven for default(Big...
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: 2.10.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Rodrigo Kumpera
Depends on:
Reported: 2013-04-24 15:02 UTC by steven.orth
Modified: 2013-06-11 14:19 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description steven.orth 2013-04-24 15:02:46 UTC
If you create a default BigInteger and then use it to compare to another BigInteger, or use the IsEven method, a NullReferenceException results.
Comment 1 Marek Safar 2013-05-09 08:41:00 UTC
System.Numeric.BigInteger assumes that data will never be null which is wrong.

			var bi = new BigInteger ();

throws too, almost all data methods need to be updated
Comment 2 Rodrigo Kumpera 2013-06-11 14:19:51 UTC
Fixed on master.