fixed #431 Crash on autotype if there are entries with invalid (or empty) urls.

This commit is contained in:
michael starke
2016-03-05 13:50:16 +01:00
parent 6a6226aa60
commit 6605ea1276

View File

@@ -83,7 +83,7 @@
/* test for host */
if(matchHost && !foundMatch) {
NSURL *url = [NSURL URLWithString:entry.url];
foundMatch = [windowTitle rangeOfString:url.host options:NSCaseInsensitiveSearch].length != 0;
foundMatch = url.host != nil && [windowTitle rangeOfString:url.host options:NSCaseInsensitiveSearch].length != 0;
}
/* test for tags */
if(matchTags && !foundMatch) {