Make sure crash reports incident identifier and key don't have special [] chars and some value

The previously shows [] as part of [TODO], since PLCrashReporter didn't fill them out. Having the incident identifier showing a [ or ] char made it impossible to drag it into the Organizer to get it symbolicated in there
This commit is contained in:
Andreas Linde 2012-12-06 18:12:27 +01:00
parent 610a441e85
commit c2250f3b80

View File

@ -173,14 +173,14 @@ static NSInteger binaryImageSort(id binary1, id binary2, void *context) {
} }
{ {
NSString *reportGUID = @"[TODO]"; NSString *reportGUID = @"TODO";
if ([report respondsToSelector:@selector(reportInfo)]) { if ([report respondsToSelector:@selector(reportInfo)]) {
if (report.hasReportInfo && report.reportInfo.reportGUID != nil) if (report.hasReportInfo && report.reportInfo.reportGUID != nil)
reportGUID = report.reportInfo.reportGUID; reportGUID = report.reportInfo.reportGUID;
} }
NSString *reporterKey = @"[TODO]"; NSString *reporterKey = @"TODO";
if (crashReporterKey) if (crashReporterKey && [crashReporterKey length] > 0)
reporterKey = crashReporterKey; reporterKey = crashReporterKey;
NSString *hardwareModel = @"???"; NSString *hardwareModel = @"???";