LOL @ error message

Discussion in 'iOS Programming' started by DennisBlah, Sep 2, 2014.

  1. DennisBlah macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #1
    HAHAH I just received this error message:

    Code:
    zorgapp[31152:60b] *** -[__NSCFCalendar components:fromDate:toDate:options:]: fromDate cannot be nil
    I mean really, what do you think that operation is supposed to mean with a nil fromDate?
    An exception has been avoided for now.
    A few of these errors are going to be reported with this complaint, then further violations will simply silently do whatever random thing results from the nil.
    Here is the backtrace where this occurred this time (some frames may be missing due to compiler optimizations):
    
    It has to do with this :
    Code:
    unsigned int unitFlags = NSMonthCalendarUnit | NSDayCalendarUnit;
        NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
        NSDateComponents *comps = [gregorian components:unitFlags fromDate:startDate  toDate:endDate  options:0];
    
    I know what went wrong, but this a default error message :D:rolleyes:
     
  2. ArtOfWarfare, Sep 2, 2014
    Last edited: Sep 2, 2014

    ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #2
    I posted this exact error message several months (years?) ago.

    Here it is, from July 2013: Chatty Error Message
     
  3. DennisBlah thread starter macrumors 6502

    DennisBlah

    Joined:
    Dec 5, 2013
    Location:
    The Netherlands
    #3
    Haha ok, I see
    Sorry for a double post then, I just found it hilarious! :D
     

Share This Page