adium 5521:bfb34b4ffee0: Don't create a dictionary with a nil ob...
commits at adium.im
commits at adium.im
Sat Jun 1 15:14:40 UTC 2013
details: http://hg.adium.im/adium/rev/bfb34b4ffee0
revision: 5521:bfb34b4ffee0
branch: adium-1.5.7
author: Frank Dowsett <wixardy at adium.im>
date: Thu May 30 12:59:34 2013 -0400
Don't create a dictionary with a nil object. Fixes #16400
diffs (28 lines):
diff -r 878a85a40504 -r bfb34b4ffee0 Frameworks/Adium Framework/Source/AIContactObserverManager.m
--- a/Frameworks/Adium Framework/Source/AIContactObserverManager.m Thu May 23 11:28:15 2013 -0400
+++ b/Frameworks/Adium Framework/Source/AIContactObserverManager.m Thu May 30 12:59:34 2013 -0400
@@ -246,20 +246,17 @@
}
}
+ NSDictionary *keys = (inModifiedKeys ? [NSDictionary dictionaryWithObject:inModifiedKeys forKey:@"Keys"] : nil);
//Post an attributes changed message
[[NSNotificationCenter defaultCenter] postNotificationName:ListObject_AttributesChanged
object:inObject
- userInfo:(inModifiedKeys ?
- [NSDictionary dictionaryWithObject:inModifiedKeys
- forKey:@"Keys"] :
- nil)];
-
+ userInfo:keys];
+
if (!shouldDelay) {
/* Note that we completed 1 or more delayed attribute changes */
[[NSNotificationCenter defaultCenter] postNotificationName:ListObject_AttributeChangesComplete
object:inObject
- userInfo:[NSDictionary dictionaryWithObject:inModifiedKeys
- forKey:@"Keys"]];
+ userInfo:keys];
}
}
More information about the commits
mailing list