Skip to content

Commit

Permalink
checked for one argument too less
Browse files Browse the repository at this point in the history
  • Loading branch information
allesmi authored and purplecabbage committed May 16, 2012
1 parent f7aab12 commit 400f99e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iOS/NativeControls/NativeControls.m
Expand Up @@ -492,7 +492,7 @@ - (void)createToolBarItem:(NSArray*)arguments withDict:(NSDictionary*)options
NSString *title = [arguments objectAtIndex:1];
NSString *imageName = nil;

if (arguments.count >= 2)
if (arguments.count > 2)
{
imageName = [arguments objectAtIndex:2];
}
Expand Down

0 comments on commit 400f99e

Please sign in to comment.