Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check for empyt subNodes array in isLeaf method

  • Loading branch information...
commit 40d76aeb6746d98a960940120aa9f7788a22f62e 1 parent ff95c94
@ole ole authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  TreeControllerTest/JJNode.m
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.