diff --git a/flutter/ios/Classes/SentryFlutterReplayScreenshotProvider.m b/flutter/ios/Classes/SentryFlutterReplayScreenshotProvider.m index 44c566ce9..61d9e87e5 100644 --- a/flutter/ios/Classes/SentryFlutterReplayScreenshotProvider.m +++ b/flutter/ios/Classes/SentryFlutterReplayScreenshotProvider.m @@ -33,7 +33,7 @@ - (void)imageWithView:(UIView *_Nonnull)view } else if ([value isKindOfClass:[NSDictionary class]]) { NSDictionary *dict = (NSDictionary *)value; long address = ((NSNumber *)dict[@"address"]).longValue; - (NSNumber *)length = ((NSNumber *)dict[@"length"]); + NSNumber *length = ((NSNumber *)dict[@"length"]); NSData *data = [NSData dataWithBytesNoCopy:(void *)address length:length.unsignedLongValue