bugGNUstep - Bugs: bug #16456, Unarchive NSArray containing...

 
 

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

bug #16456: Unarchive NSArray containing several NSNull

Submitted by:  pavel moravec <pavamora>
Submitted on:  Fri 28 Apr 2006 06:42:30 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 28 Apr 2006 07:44:27 AM UTC, comment #1:

Fixed in SVN ... thanks.

Richard Frith-Macdonald <CaS>
Project Member
Fri 28 Apr 2006 06:42:30 AM UTC, original submission:

I'm using Mandrake 10.1 (i586) with gcc-3.4.1 and GNUstep gnustep-base-1.12.0

The following sequence does work:
id x=[NSMutableArray array];
[x addObject:@"a"];
[x addObject:[NSNull null]];
//[x addObject:[NSNull null]];
[x addObject:@"b"];
NSLog(@"count %d content %@",[x count], x);
id y=[NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject: x]];
NSLog(@"count %d content %@",[y count],y);

But the following sequence does not work:
id x=[NSMutableArray array];
[x addObject:@"a"];
[x addObject:[NSNull null]];
[x addObject:[NSNull null]];
[x addObject:@"b"];
NSLog(@"count %d content %@",[x count], x);
id y=[NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject: x]];
NSLog(@"count %d content %@",[y count],y);

pavel moravec <pavamora>

 

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
Fri 28 Apr 2006 07:44:27 AM UTCCaSStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1