Skip to content

Commit

Permalink
Be robust against nil transactions in FLEXNetworkTransactionTableView…
Browse files Browse the repository at this point in the history
…Cell
  • Loading branch information
ryanolsonk committed Oct 29, 2015
1 parent bc5dfa0 commit b0b64c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Classes/Network/FLEXNetworkTransactionTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,13 @@ - (NSString *)transactionDetailsLabelText
NSMutableArray *detailComponents = [NSMutableArray array];

NSString *timestamp = [[self class] timestampStringFromRequestDate:self.transaction.startTime];
[detailComponents addObject:timestamp];
if ([timestamp length] > 0) {
[detailComponents addObject:timestamp];
}

// Omit method for GET (assumed as default)
NSString *httpMethod = self.transaction.request.HTTPMethod;
if (httpMethod) {
if ([httpMethod length] > 0) {
[detailComponents addObject:httpMethod];
}

Expand Down

0 comments on commit b0b64c1

Please sign in to comment.