adium-1.4 3320:ccb09f0e6c8c: Fix a bug with nil objects in the A...

commits at adium.im commits at adium.im
Tue Dec 21 01:25:01 UTC 2010


details:	http://hg.adium.im/adium-1.4/rev/ccb09f0e6c8c
revision:	3320:ccb09f0e6c8c
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Tue Dec 21 02:24:26 2010 +0100

Fix a bug with nil objects in the AIHTHMLDecoder

diffs (19 lines):

diff -r 9971d78a63d2 -r ccb09f0e6c8c Frameworks/Adium Framework/Source/AIHTMLDecoder.m
--- a/Frameworks/Adium Framework/Source/AIHTMLDecoder.m	Tue Dec 21 00:55:17 2010 +0100
+++ b/Frameworks/Adium Framework/Source/AIHTMLDecoder.m	Tue Dec 21 02:24:26 2010 +0100
@@ -935,10 +935,12 @@
 					                                                  elementContent:nil
 					                             shouldAddElementContentToTopElement:NULL
 																		  imagesPath:imagesSavePath];
-					[[elementStack lastObject] addObject:restoreElement];
-					[elementStack addObject:restoreElement];
+					if (restoreElement) {
+						[[elementStack lastObject] addObject:restoreElement];
+						[elementStack addObject:restoreElement];
 
-					[attributeNamesStack addObject:attributesToRestore];
+						[attributeNamesStack addObject:attributesToRestore];
+					}
 				}
 			}
 




More information about the commits mailing list