Skip to content

Commit

Permalink
Fix crash in RCTJSStackFrame
Browse files Browse the repository at this point in the history
Reviewed By: mmmulani

Differential Revision: D3776330

fbshipit-source-id: 0e9126825e86dd7c124bc22341ab3b39b1bd3e0b
  • Loading branch information
javache authored and Facebook Github Bot 2 committed Aug 26, 2016
1 parent 63931b1 commit ea3bb35
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions React/Base/RCTJSStackFrame.m
Expand Up @@ -9,7 +9,7 @@

#import "RCTJSStackFrame.h"
#import "RCTLog.h"

#import "RCTUtils.h"

static NSRegularExpression *RCTJSStackFrameRegex()
{
Expand Down Expand Up @@ -41,11 +41,11 @@ - (instancetype)initWithMethodName:(NSString *)methodName file:(NSString *)file
- (NSDictionary *)toDictionary
{
return @{
@"methodName": self.methodName,
@"file": self.file,
@"lineNumber": @(self.lineNumber),
@"column": @(self.column)
};
@"methodName": RCTNullIfNil(self.methodName),
@"file": RCTNullIfNil(self.file),
@"lineNumber": @(self.lineNumber),
@"column": @(self.column)
};
}

+ (instancetype)stackFrameWithLine:(NSString *)line
Expand Down

0 comments on commit ea3bb35

Please sign in to comment.