adium 5034:a2d01504eb3b: Don't try to convert a NULL pointer to ...
commits at adium.im
commits at adium.im
Thu Sep 6 19:03:38 UTC 2012
details: http://hg.adium.im/adium/rev/a2d01504eb3b
revision: 5034:a2d01504eb3b
branch: adium-1.5.4
author: Thijs Alkemade <thijsalkemade at gmail.com>
date: Thu Sep 06 21:01:42 2012 +0200
Don't try to convert a NULL pointer to an NSString here.
Fixes #16007
diffs (13 lines):
diff -r eb9b5cf53bc3 -r a2d01504eb3b Plugins/Purple Service/adiumPurpleSignals.m
--- a/Plugins/Purple Service/adiumPurpleSignals.m Thu Sep 06 18:55:34 2012 +0200
+++ b/Plugins/Purple Service/adiumPurpleSignals.m Thu Sep 06 21:01:42 2012 +0200
@@ -276,6 +276,9 @@
for (ll = l; ll; ll = ll->next) {
void *key = ll->data;
void *value = g_hash_table_lookup(data, key);
+
+ if (!key || !value) continue;
+
NSString *keyString = [NSString stringWithUTF8String:key];
NSString *valueString = [NSString stringWithUTF8String:value];
if ([valueString integerValue]) {
More information about the commits
mailing list