stringValue can't be nil.

This commit is contained in:
Kelvin Sherlock 2021-06-04 00:20:42 -04:00
parent 94aac38af4
commit 0b248e6aad
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ Todo --
}
-(void)setStringValue:(NSString *)stringValue {
[super setStringValue: stringValue];
[super setStringValue: stringValue ? stringValue : @""];
if (_value && [[_value menuTitle] isEqualToString: stringValue] == NO)
_value = nil;