Re: NSDecimalNumber nil parameter to -decimalNumberByAdding: causes Mach exception EXC_BAD_ACCESS
Re: NSDecimalNumber nil parameter to -decimalNumberByAdding: causes Mach exception EXC_BAD_ACCESS
- Subject: Re: NSDecimalNumber nil parameter to -decimalNumberByAdding: causes Mach exception EXC_BAD_ACCESS
- From: Kyle Sluder <email@hidden>
- Date: Mon, 13 Apr 2009 17:13:44 -0400
On Mon, Apr 13, 2009 at 4:47 PM, email@hidden
<email@hidden> wrote:
> NSDecimalNumber *n2 = nil;
> n = [n decimalNumberByAdding:n2];
You can't assume that nil is a valid argument. So no, the lack of any
documentation stating that "passing nil will blow up" is not a bug.
--Kyle Sluder
_______________________________________________
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