Don't try to convert a NULL pointer to an NSString here. adium-1.5.4
authorThijs Alkemade <thijsalkemade@gmail.com>
Thu, 06 Sep 2012 21:01:42 +0200
branchadium-1.5.4
changeset 5034a2d01504eb3b
parent 5033 eb9b5cf53bc3
child 5035 6707e0f46463
child 5037 45a222d15932
Don't try to convert a NULL pointer to an NSString here.

Fixes #16007
Plugins/Purple Service/adiumPurpleSignals.m
     1.1 --- a/Plugins/Purple Service/adiumPurpleSignals.m	Thu Sep 06 18:55:34 2012 +0200
     1.2 +++ b/Plugins/Purple Service/adiumPurpleSignals.m	Thu Sep 06 21:01:42 2012 +0200
     1.3 @@ -276,6 +276,9 @@
     1.4  	for (ll = l; ll; ll = ll->next) {
     1.5  		void *key = ll->data;
     1.6  		void *value = g_hash_table_lookup(data, key);
     1.7 +		
     1.8 +		if (!key || !value) continue;
     1.9 +		
    1.10  		NSString *keyString = [NSString stringWithUTF8String:key];
    1.11  		NSString *valueString = [NSString stringWithUTF8String:value];
    1.12  		if ([valueString integerValue]) {