adium/adium

541ecd4ba9a7
Parents 5cd72bf325c6
Children 868232f2e8ef
Don't create a dictionary with a nil object. Fixes #16400
--- a/Frameworks/Adium Framework/Source/AIContactObserverManager.m Thu May 23 22:25:59 2013 +0200
+++ 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];
}
}