bugGNUstep - Bugs: bug #12321, gmt = [NSTimeZone [NSTimeZone...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #12321: gmt = [NSTimeZone [NSTimeZone timeZoneWithAbbreviation:@"GMT"] cause Exception

Submitted by:  None
Submitted on:  Mon 14 Mar 2005 11:54:48 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 15 Mar 2005 04:36:58 AM UTC, comment #2:

This bug already fixed in CVS at the satart of January,
Thanks for the report though.

Richard Frith-Macdonald <CaS>
Project Member
Tue 15 Mar 2005 12:21:39 AM UTC, comment #1:

after inserting the NSLOG-statement the problem went away.. digging into the code is supect the following:

the NSLog triggers a count in the
NSInternalAbbrevDict wich triggers a
[NSTimeZone abbreviationMap] and this method then
loads the dictionary, which could otherwise be uninitialized.

Stefan Huehner <shuehner>
Mon 14 Mar 2005 11:54:48 PM UTC, original submission:

calling the following statement

gmt = [NSTimeZone timeZoneWithAbbreviation:@"GMT"];

i get an exception:
Uncaught exception NSInvalidArgumentException, reason:
Tried to add nil key to dictionary...

For debugging purposes i called:
NSLog (@"timezone abbreviations: %@", [NSTimeZone
abbreviationDictionary]);
and the only output for exactly the "GMT" was:
GMT = "Africa/Porto-Novo";
which is definitely not my time-zone (Europe/Berlin).

Version-Information: (debian-packages)
libgnustep-base1.10-dev 1.10.1-2

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 15 Mar 2005 04:36:58 AM UTCCaSStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1