Permalink
Browse files

Check for empyt subNodes array in isLeaf method

  • Loading branch information...
1 parent ff95c94 commit 40d76aeb6746d98a960940120aa9f7788a22f62e @ole ole committed Jan 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 TreeControllerTest/JJNode.m
@@ -15,7 +15,7 @@ @implementation JJNode
- (BOOL) isLeaf
{
- return (self.subNodes == nil);
+ return (self.subNodes == nil || [self.subNodes count] == 0);
}
- (void) dealloc

0 comments on commit 40d76ae

Please sign in to comment.