Skip to content

Commit

Permalink
Fix bug where login sheet might not show
Browse files Browse the repository at this point in the history
  • Loading branch information
superfell committed Nov 16, 2021
1 parent aa9eb2c commit fee2be1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions AppExplorer/LoginTargetController.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,15 @@ -(instancetype)init {
for (NSString *s in servers) {
if (([s caseInsensitiveCompare:LOGIN_WWW] == NSOrderedSame) ||
([s caseInsensitiveCompare:LOGIN_LOGIN] == NSOrderedSame) ||
([s caseInsensitiveCompare:LOGIN_TEST] == NSOrderedSame)) {
([s caseInsensitiveCompare:LOGIN_TEST] == NSOrderedSame) || s == nil) {
continue;
}
NSURL *url = [NSURL URLWithString:s];
[items addObject:url];
if (url == nil) {
NSLog(@"Skipping server '%@' which isn't a valid url", s);
} else {
[items addObject:url];
}
}
self.items = items;
return self;
Expand Down

0 comments on commit fee2be1

Please sign in to comment.