Skip to content
Snippets Groups Projects
Commit 111fcc90 authored by George Nachman's avatar George Nachman
Browse files

Fix a crash when a profile has a nil name. Not sure how that would happen.

parent 5f259fe3
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -602,7 +602,7 @@ const CGFloat kDefaultTagsWidth = 80;
DLog(@"Getting name of profile at row %d. The dictionary's address is %p. Its name is %@",
(int)rowIndex, bookmark, bookmark[KEY_NAME]);
Profile *defaultProfile = [[ProfileModel sharedInstance] defaultBookmark];
return [self attributedStringForName:bookmark[KEY_NAME]
return [self attributedStringForName:bookmark[KEY_NAME] ?: @""
tags:bookmark[KEY_TAGS]
selected:[[tableView_ selectedRowIndexes] containsIndex:rowIndex]
isDefault:[bookmark[KEY_GUID] isEqualToString:defaultProfile[KEY_GUID]]
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment