adium 2186:5ac76de478a0: Be more forceful about this

commits at adium.im commits at adium.im
Thu May 14 23:36:09 UTC 2009


details:	http://hg.adium.im/adium/rev/5ac76de478a0
revision:	2186:5ac76de478a0
author:		David Smith <catfish.man at gmail.com>
date:		Thu May 14 16:35:53 2009 -0700

Be more forceful about this

diffstat:

 Source/AIPreferenceContainer.m |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (16 lines):

diff -r 9d8345ab2d12 -r 5ac76de478a0 Source/AIPreferenceContainer.m
--- a/Source/AIPreferenceContainer.m	Thu May 14 13:46:57 2009 -0700
+++ b/Source/AIPreferenceContainer.m	Thu May 14 16:35:53 2009 -0700
@@ -426,7 +426,11 @@
 																 mutabilityOption:NSPropertyListMutableContainers 
 																		   format:NULL 
 																 errorDescription:&errorString];
-		NSAssert(!theDict || [theDict count] == 0 || [immutablePrefsToWrite count] > 0, @"Writing out an empty ByObjectPrefs when we have an existing non-empty one!");
+		if (theDict && [theDict count] > 0 && [immutablePrefsToWrite count] == 0)
+		{
+			NSLog(@"Writing out an empty ByObjectPrefs when we have an existing non-empty one!");
+			*((int*)0xdeadbeef) = 42;
+		}
 	}
 #endif
 #warning figure this out




More information about the commits mailing list