You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to remove an Object via the removeEntryAtIndex function but i get a NSInvalidArgumentException on Line 1043 of your NSOrderedDictionary.m.
1043: [pairs setObject:nil forKey:key];
Fixed it via: [pairs setObject:[NSNull null] forKey:key];
Greets
f8bar
The text was updated successfully, but these errors were encountered:
I have fixed the problem, I replaced [pairs setObject:nil forKey:key]; with [pairs removeObjectForKey:key];
Here is why I used removeObjectForKey: instead of setObject:forKey: [pairs setObject:[NSNull null] forKey:key]; would seem to work, but it is not the same as actually removing the object. [NSNull null] is a placeholder for nil, but is not actually nil, so the key null pair will still exist in memory.
Please confirm that this fixes the problem, and if it does, please close the issue.
Hi,
I'm trying to remove an Object via the removeEntryAtIndex function but i get a NSInvalidArgumentException on Line 1043 of your NSOrderedDictionary.m.
1043: [pairs setObject:nil forKey:key];
Fixed it via: [pairs setObject:[NSNull null] forKey:key];
Greets
f8bar
The text was updated successfully, but these errors were encountered: