Skip to content

Commit 50643c0

Browse files
committed
Fixes #124 - Count to including zero for frames when an exception happens
1 parent dbb5bca commit 50643c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNSentry.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ - (void)swizzleCallNativeModule:(Class)class {
349349
NSDictionary *exception = event[@"exception"][@"values"][0];
350350
NSMutableArray *frames = [NSMutableArray array];
351351
NSArray<SentryFrame *> *stacktrace = [self convertReactNativeStacktrace:SentryParseRavenFrames(exception[@"stacktrace"][@"frames"])];
352-
for (NSInteger i = (stacktrace.count-1); i > 0; i--) {
352+
for (NSInteger i = (stacktrace.count-1); i >= 0; i--) {
353353
[frames addObject:[stacktrace objectAtIndex:i]];
354354
}
355355
[self addExceptionToEvent:sentryEvent type:exception[@"type"] value:exception[@"value"] frames:frames];

0 commit comments

Comments
 (0)