diff --git a/React/Modules/RCTRedBox.m b/React/Modules/RCTRedBox.m index 6abb6dd7a1f334..a334c753368bc3 100644 --- a/React/Modules/RCTRedBox.m +++ b/React/Modules/RCTRedBox.m @@ -193,8 +193,14 @@ - (UITableViewCell *)reuseCell:(UITableViewCell *)cell forStackFrame:(NSDictiona } cell.textLabel.text = stackFrame[@"methodName"]; - cell.detailTextLabel.text = [NSString stringWithFormat:@"%@ @ %@:%@", - [stackFrame[@"file"] lastPathComponent], stackFrame[@"lineNumber"], stackFrame[@"column"]]; + if (stackFrame[@"file"]) { + cell.detailTextLabel.text = [NSString stringWithFormat:@"%@ @ %zd:%zd", + [stackFrame[@"file"] lastPathComponent], + [stackFrame[@"lineNumber"] integerValue], + [stackFrame[@"column"] integerValue]]; + } else { + cell.detailTextLabel.text = @""; + } return cell; }