Skip to content
Permalink
Browse files
Fix for CB-9753 : index out of bounds on requestFileSystem. This closes
  • Loading branch information
ThillaiganeshC authored and Raghav Katyal committed Mar 7, 2016
1 parent df0baa1 commit 68e40437f48aa648e15653d74e007f5dbf5741ec
Showing 1 changed file with 1 addition and 1 deletion.
@@ -448,7 +448,7 @@ - (void)requestFileSystem:(CDVInvokedUrlCommand*)command
int type = [strType intValue];
CDVPluginResult* result = nil;

if (type > self.fileSystems.count) {
if (type >= self.fileSystems.count) {
result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsInt:NOT_FOUND_ERR];
NSLog(@"No filesystem of type requested");
} else {

0 comments on commit 68e4043

Please sign in to comment.