Skip to content

Commit edd8bef

Browse files
authored
Merge pull request #171 from getsentry/bugfix/fix-framecount
Fix wrong framecount
2 parents dbb5bca + 50643c0 commit edd8bef

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)