aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTreeNode.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTreeNode.m')
-rw-r--r--Source/SPTreeNode.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/SPTreeNode.m b/Source/SPTreeNode.m
index d93db01b..f787816a 100644
--- a/Source/SPTreeNode.m
+++ b/Source/SPTreeNode.m
@@ -236,14 +236,18 @@ static NSString *SPTreeNodeIsGroupKey = @"SPTreeNodeIsGroup";
for (SPTreeNode *node in [self childNodes])
{
- [children addObject:[node dictionaryRepresentation]];
+ NSDictionary *representation = [node dictionaryRepresentation];
+
+ if (representation) {
+ [children addObject:representation];
+ }
}
dictionary = [NSMutableDictionary dictionary];
NSString *name = (![self parentNode]) ? NSLocalizedString(@"Favorites", @"favorites label") : [object nodeName];
- [dictionary setObject:(name) ? name : @"" forKey:SPFavoritesGroupNameKey];
+ [dictionary setObject:name ? name : @"" forKey:SPFavoritesGroupNameKey];
[dictionary setObject:children forKey:SPFavoriteChildrenKey];
}