dgm9704 / Xoxo

read, write, compare, convert XBRL reports
GNU Lesser General Public License v3.0
27 stars 9 forks source link

Fact.ToString() throws when fact has null properties #31

Closed dgm9704 closed 8 years ago

dgm9704 commented 8 years ago

Assert.Fail failed. System.NullReferenceException: Object reference not set to an instance of an object. at Diwen.Xbrl.Fact.ToString() at Diwen.Xbrl.InstanceComparer.FactComparison(Instance a, Instance b) at Diwen.Xbrl.InstanceComparer.Report(Instance a, Instance b, ComparisonTypes comparisonTypes)

-> In Fact.ToString() check for Metric, Unit and Context being null