We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d83b35a commit c68d42fCopy full SHA for c68d42f
Sources/Sentry/SentryRequestOperation.m
@@ -2,6 +2,7 @@
2
#import "SentryClient.h"
3
#import "SentryError.h"
4
#import "SentryHub.h"
5
+#import "SentryInternalDefines.h"
6
#import "SentryLogC.h"
7
#import "SentryOptions.h"
8
#import "SentrySDK+Private.h"
@@ -36,7 +37,10 @@ - (instancetype)initWithSession:(NSURLSession *)session
36
37
SENTRY_LOG_DEBUG(@"Request status: %ld", (long)statusCode);
38
if ([SentrySDKInternal.currentHub getClient].options.debug == YES) {
39
SENTRY_LOG_DEBUG(@"Request response: %@",
- [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]);
40
+ data != nil
41
+ ? [[NSString alloc] initWithData:SENTRY_UNWRAP_NULLABLE(NSData, data)
42
+ encoding:NSUTF8StringEncoding]
43
+ : @"<no data>");
44
}
45
46
if (nil != error) {
0 commit comments