Skip to content

Commit

Permalink
Merge 8e23a00 into 3b782cc
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight committed Apr 14, 2023
2 parents 3b782cc + 8e23a00 commit c23c255
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Fixes

- Crash when serializing invalid objects (#2858)
- Possible crash in Core Data tracking (#2865)
- Don't send screenshots with either width or height of 0 (#2876))

## 8.4.0
Expand Down
5 changes: 3 additions & 2 deletions Sources/Sentry/SentryCoreDataTracker.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#import "SentrySDK+Private.h"
#import "SentryScope+Private.h"
#import "SentrySpanProtocol.h"
@import SentryPrivate;
#import "SentryStacktrace.h"
#import "SentryThreadInspector.h"

Expand Down Expand Up @@ -172,8 +173,8 @@ - (NSString *)descriptionForOperations:
{
NSMutableDictionary<NSString *, NSNumber *> *result = [NSMutableDictionary new];

for (NSManagedObject *item in entities) {
NSString *cl = item.entity.name;
for (id item in entities) {
NSString *cl = ((NSManagedObject *)item).entity.name ?: [SwiftDescriptor getObjectClassName:item];
NSNumber *count = result[cl];
result[cl] = [NSNumber numberWithInt:count.intValue + 1];
}
Expand Down

0 comments on commit c23c255

Please sign in to comment.