Mac framework fixes: Propagate server type from plist, and fix precedence of defaults vs. plist

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@334 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
stuart.morgan
2009-04-29 13:27:16 +00:00
parent ed1f6e754a
commit 73afbc7302
2 changed files with 9 additions and 8 deletions

View File

@@ -627,7 +627,7 @@ doCommandBySelector:(SEL)commandSelector {
}
- (NSDictionary *)dictionaryForServerType:(NSString *)serverType {
if (serverType == nil) {
if (serverType == nil || [serverType length] == 0) {
return [serverDictionary_ objectForKey:kDefaultServerType];
}
return [serverDictionary_ objectForKey:serverType];