Permalink
Browse files

Fix crash when no parameters are provided by protecting against out o…

…f bounds array access when accessing first parameter. Now displays an error message instead.
  • Loading branch information...
1 parent 05d4d44 commit 162406ed561057c53f273013e98a9fc04d0053ac @tewha tewha committed Jan 24, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 Application/GBAppledocApplication.m
@@ -512,6 +512,8 @@ - (NSString *)combineBasePath:(NSString *)base withRelativePath:(NSString *)path
- (void)injectXcodeSettingsFromArguments:(NSArray *)arguments {
//check if even deal with a project
+ if([arguments count] < 2)
+ return;
NSString *path = [arguments objectAtIndex:1];
if(![path.pathExtension isEqualToString:@"xcodeproj"])
return;

0 comments on commit 162406e

Please sign in to comment.