Allow nil value in presence of formatter, the formatter may want to format that

This commit is contained in:
Aparajita Fishman committed 2012-08-09 20:31:26 -07:00
1 parent c4c7da3967
commit 6e40020906
1 file changed
+1 -1
+1 -1
View File
@@ -516,7 +516,7 @@ var CPControlBlackColor = [CPColor blackColor];
*/
- (CPString)stringValue
{
if (_formatter && _value !== undefined && _value !== nil)
if (_formatter && _value !== undefined)
{
var formattedValue = [self hasThemeState:CPThemeStateEditing] ? [_formatter editingStringForObjectValue:_value] : [_formatter stringForObjectValue:_value];