diff --git a/platform-darwin/Source/iOS/MPSitesViewController.m b/platform-darwin/Source/iOS/MPSitesViewController.m index b96ea167..eb85d524 100644 --- a/platform-darwin/Source/iOS/MPSitesViewController.m +++ b/platform-darwin/Source/iOS/MPSitesViewController.m @@ -89,7 +89,7 @@ typedef NS_OPTIONS( NSUInteger, MPPasswordsTips ) { pasteboardURL = [NSURL URLWithString:pasteboard.string]; if (pasteboardURL.host) - self.query = NSNullToNil( [pasteboardURL.host firstMatchGroupsOfExpression:bareHostRE][0] ); + self.query = NSNullToNil( [[pasteboardURL.host firstMatchGroupsOfExpression:bareHostRE] firstObject] ); else [self reloadSites]; }