diff --git a/React/Modules/RCTRedBox.m b/React/Modules/RCTRedBox.m index 6abb6dd7a..a334c7533 100644 --- a/React/Modules/RCTRedBox.m +++ b/React/Modules/RCTRedBox.m @@ -193,8 +193,14 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder) } 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; }