adium/adium

Parents 93b7aa7d0a76
Children ce19c4993f62
Let's test against a variable that can be nil since -distantPast is always true.
--- a/Other/Adium Crash Reporter/AICrashReporter.m Sat Aug 03 21:12:16 2013 -0400
+++ b/Other/Adium Crash Reporter/AICrashReporter.m Thu Aug 08 17:27:33 2013 -0400
@@ -63,7 +63,7 @@
NSDate *lastKnownCrashDate = [defaults objectForKey:LAST_CRASH_DATE];
// check to see if Adium crashed since the last crash (there's a newer crash report)
- if (mostRecentCrashDate && (!lastKnownCrashDate || [mostRecentCrashDate compare:lastKnownCrashDate] == NSOrderedDescending)) {
+ if (self.crashLog && (!lastKnownCrashDate || [mostRecentCrashDate compare:lastKnownCrashDate] == NSOrderedDescending)) {
[NSBundle loadNibNamed:@"CrashReporter" owner:self];
// save last crash date