Skip to content

Exception occured while trying to share - object cannot be null #13

@ikuprin

Description

@ikuprin

Function showShareDialog contains code:

for (NSString *stringToShare in rawStringsToShare) {
            
            if ([stringToShare containsString:@"http://"] || [stringToShare containsString:@"https://"]) {
                [dataToShare addObject:[NSURL URLWithString:stringToShare]];
            }
            else {
                [dataToShare addObject:stringToShare];
            }
            
        }

So, if string has url not from beginning - exception. This is normally that messages may contains urls...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions