NSDecimalNumber nil parameter to -decimalNumberByAdding: causes Mach exception EXC_BAD_ACCESS
NSDecimalNumber nil parameter to -decimalNumberByAdding: causes Mach exception EXC_BAD_ACCESS
- Subject: NSDecimalNumber nil parameter to -decimalNumberByAdding: causes Mach exception EXC_BAD_ACCESS
- From: "email@hidden" <email@hidden>
- Date: Mon, 13 Apr 2009 21:47:07 +0100
Is this a known issue with NSDecimalNumber ?
NSDecimalNumber *n1 = (NSDecimalNumber *)[NSDecimalNumber
numberWithDouble:1.0];
NSDecimalNumber *n2 = nil;
n = [n decimalNumberByAdding:n2];
result = EXC_BAD_ACCESS
There seems to be nothing in the docs to suggest that the parameter is
unduly sensitive.
Jonathan Mitchell
Central Conscious Unit
http://www.mugginsoft.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden