• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
-[NSCFArray initWithObjects:count:]: nil object. Why no crash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-[NSCFArray initWithObjects:count:]: nil object. Why no crash?


  • Subject: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?
  • From: Jerry Krinock <email@hidden>
  • Date: Sun, 26 Sep 2010 14:32:24 -0700

When my app runs for a particular user it emits these to the console once in awhile:

*** -[NSCFArray initWithObjects:count:]: attempt to insert nil object at objects[0]

However, the app does not crash for him when this happens.

I would like it to crash when this happens so I could get a crash report with a call stack.

I can reproduce that log message with this code:

    NSArray* crash = [NSArray arrayWithObject:nil] ;
    NSLog(@"%@", crash) ;

However, for me, even if I launch by doubleclicking my Release build in Finder, after logging that exception, it crashes.

We're both running Mac OS 10.6.4 on Intel, although his is a 64-bit processor, the app is 32-bit.

Why does it crash for me and not for him?  Does the Mac OS have some kind of system-wide exception-handling preferences that I'm not aware of?  Could some system extension do this?

Thank you,

Jerry Krinock


_______________________________________________

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

  • Follow-Ups:
    • Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?
      • From: Shawn Erickson <email@hidden>
    • Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?
      • From: Kyle Sluder <email@hidden>
    • Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Selection of object in popup button
  • Next by Date: Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?
  • Previous by thread: Re: Selection of object in popup button
  • Next by thread: Re: -[NSCFArray initWithObjects:count:]: nil object. Why no crash?
  • Index(es):
    • Date
    • Thread