File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -284,6 +284,9 @@ - (void)attributedLabel:(TTTAttributedLabel *)label didSelectLinkWithTransitInfo
284284}
285285
286286- (void )analyseLinkStr : (NSString *)linkStr {
287+ if (linkStr.length <= 0 ) {
288+ return ;
289+ }
287290 UIViewController *vc = [BaseViewController analyseVCFromLinkStr: linkStr];
288291 if (vc) {
289292 [self .navigationController pushViewController: vc animated: YES ];
Original file line number Diff line number Diff line change @@ -567,6 +567,9 @@ - (void)attributedLabel:(TTTAttributedLabel *)label didSelectLinkWithTransitInfo
567567}
568568
569569- (void )analyseLinkStr : (NSString *)linkStr {
570+ if (linkStr.length <= 0 ) {
571+ return ;
572+ }
570573 UIViewController *vc = [BaseViewController analyseVCFromLinkStr: linkStr];
571574 if (vc) {
572575 [self .navigationController pushViewController: vc animated: YES ];
Original file line number Diff line number Diff line change @@ -376,6 +376,9 @@ - (void)loadRequest:(NSURLRequest *)curRequest{
376376}
377377
378378- (void )analyseLinkStr : (NSString *)linkStr {
379+ if (linkStr.length <= 0 ) {
380+ return ;
381+ }
379382 UIViewController *vc = [BaseViewController analyseVCFromLinkStr: linkStr];
380383 if (vc) {
381384 [self .navigationController pushViewController: vc animated: YES ];
Original file line number Diff line number Diff line change @@ -415,6 +415,9 @@ - (void)goToDetailWithTweet:(Tweet *)curTweet{
415415}
416416
417417- (void )analyseLinkStr : (NSString *)linkStr {
418+ if (linkStr.length <= 0 ) {
419+ return ;
420+ }
418421 UIViewController *vc = [BaseViewController analyseVCFromLinkStr: linkStr];
419422 if (vc) {
420423 [self .navigationController pushViewController: vc animated: YES ];
Original file line number Diff line number Diff line change @@ -358,6 +358,9 @@ - (void)loadRequest:(NSURLRequest *)curRequest{
358358}
359359
360360- (void )analyseLinkStr : (NSString *)linkStr {
361+ if (linkStr.length <= 0 ) {
362+ return ;
363+ }
361364 UIViewController *vc = [BaseViewController analyseVCFromLinkStr: linkStr];
362365 if (vc) {
363366 [self .navigationController pushViewController: vc animated: YES ];
Original file line number Diff line number Diff line change @@ -421,6 +421,9 @@ - (void)loadRequest:(NSURLRequest *)curRequest{
421421}
422422
423423- (void )analyseLinkStr : (NSString *)linkStr {
424+ if (linkStr.length <= 0 ) {
425+ return ;
426+ }
424427 UIViewController *vc = [BaseViewController analyseVCFromLinkStr: linkStr];
425428 if (vc) {
426429 [self .navigationController pushViewController: vc animated: YES ];
Original file line number Diff line number Diff line change @@ -322,6 +322,9 @@ - (void)goToDetailWithTweet:(Tweet *)curTweet{
322322}
323323
324324- (void )analyseLinkStr : (NSString *)linkStr {
325+ if (linkStr.length <= 0 ) {
326+ return ;
327+ }
325328 UIViewController *vc = [BaseViewController analyseVCFromLinkStr: linkStr];
326329 if (vc) {
327330 [self .navigationController pushViewController: vc animated: YES ];
You can’t perform that action at this time.
0 commit comments