How to use presentOptionsMenuFromRect in UIDocumentInteractionController if calling inside a third party plugin

I have abn application developed in Appcelerator. I want to display the options/list of apps that I could use to open the document that I’ve downloaded and stored in Cache FOlder of the application.

But whenever I open it using this code:

    NSFileManager *fileManager = [NSFileManager defaultManager];
    NSArray *directoryPaths = NSSearchPathForDirectoriesInDomains
    (NSCachesDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectoryPath = [directoryPaths objectAtIndex:0];
    NSString *filePath = [documentsDirectoryPath stringByAppendingPathComponent:fileName];
//    _docController = [[UIDocumentInteractionController alloc]init];
    if ([fileManager fileExistsAtPath:filePath]==YES) {
       NSLog(@"File exists");
        self._docController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:filePath]];
        [self._docController presentOptionsMenuFromRect:self.view.frame inView:self.view animated:YES];
        return true;
        NSLog(@"Failed to show Open In menu");
        return false;

I am getting this error : NSInvalidArgumentException *** -[__NSPlaceholderArray initWithObjects:count:] attempt to insert nil object from objects[0]

Can someone help me?

Source: Ios7 Questions