File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -240,14 +240,17 @@ - (UIViewController *)getActiveViewController:(UIViewController *)rootViewContro
240240 return activeController;
241241}
242242
243- - (void )addFormattedContentData : (NSMutableArray *)contentDataArray withText : (NSString *)contentData clearText : (BOOL )isClearText {
243+ - (void )addFormattedContentData : (NSMutableArray *)contentDataArray
244+ withText : (NSString *)contentData
245+ clearText : (BOOL )isClearText {
244246 if (contentData && contentData.length > _cdManifest.maxTextLen ) {
245247 contentData = [contentData substringToIndex: _cdManifest.maxTextLen];
246248 }
247249 if (!isClearText) {
248250 contentData = [BNCEncodingUtils md5Encode: contentData];
249251 }
250- [contentDataArray addObject: contentData];
252+ if (contentData)
253+ [contentDataArray addObject: contentData];
251254}
252255
253256- (NSString *)getContentText : (UIView *)view {
You can’t perform that action at this time.
0 commit comments