Developer Area

Changeset 654

Show
Ignore:
Timestamp:
01/15/10 15:10:52 (8 months ago)
Author:
henri
Message:

Fix for crash on domain with missing display string

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • apps/iphone/my.tel/trunk/Classes/AccountViewController.m

    r651 r654  
    129129        //      successResult = { 
    130130        //      success: true, 
    131         //      folderList: [{id: 12, name: "cartman.tel", soConnection: "Active"}, 
    132         //              {id: 23, name: "stan.cartman.tel", soConnection: "Uninitialised"}, 
    133         //              {id: 14, name: "henry.tel", soConnection: "Incomplete"}], 
     131        //      folderList: [{id: 12, name: "cartman.tel", soConnection: "Active", displayString: "Eric Cartman"}, 
     132        //              {id: 23, name: "stan.cartman.tel", soConnection: "Uninitialised", displayString: "Stan"}, 
     133        //              {id: 14, name: "henry.tel", soConnection: "Incomplete", displayString: "The main man"}], 
    134134        //      actionMessages: ["request successful", 
    135         //                                        
    136         //                                        
    137135        //                                       "2nd message here", 
    138136        //                                       "3rd message here"] 
     
    194192                case kKAccountTableViewSectionDomains: 
    195193                        theDomain = [self.domainsArray objectAtIndex:indexPath.row]; 
    196                         if ([theDomain objectForKey:@"displayString"] != nil) { 
     194                        if ([theDomain objectForKey:@"displayString"] != [NSNull null]) { 
    197195                                cell = [tableView dequeueReusableCellWithIdentifier:DSDomainCellIdentifier]; 
    198196                                if (cell == nil) { 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us