adium 5678:a0d98c05c597: Let's test against a variable that can ...

commits at adium.im commits at adium.im
Thu Aug 8 21:29:28 UTC 2013


details:	http://hg.adium.im/adium/rev/a0d98c05c597
revision:	5678:a0d98c05c597
branch:		adium-1.6
author:		Frank Dowsett <wixardy at adium.im>
date:		Thu Aug 08 17:27:33 2013 -0400

Let's test against a variable that can be nil since -distantPast is always true.

diffs (12 lines):

diff -r 93b7aa7d0a76 -r a0d98c05c597 Other/Adium Crash Reporter/AICrashReporter.m
--- 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




More information about the commits mailing list