diff --git a/XlsxReaderWriter/BRACell.m b/XlsxReaderWriter/BRACell.m index f37bf2d..259d6c8 100644 --- a/XlsxReaderWriter/BRACell.m +++ b/XlsxReaderWriter/BRACell.m @@ -316,7 +316,12 @@ - (NSAttributedString *)attributedStringValue { return [[NSAttributedString alloc] initWithString:[df stringFromDate:_dateValue] attributes:attributedTextAttributes]; } else if (_type == BRACellContentTypeString) { - return [[NSAttributedString alloc] initWithString:_value attributes:attributedTextAttributes]; + @try { + return [[NSAttributedString alloc] initWithString:_value attributes:attributedTextAttributes]; + } + @catch (NSException * e) { + return [[NSAttributedString alloc] initWithString:@"" attributes:attributedTextAttributes]; + } } else if (_type == BRACellContentTypeInlineString) { // TODO : Not Implemented