From kde-commits Fri Jul 14 08:49:38 2006 From: Dirk Mueller Date: Fri, 14 Jul 2006 08:49:38 +0000 To: kde-commits Subject: branches/KDE/3.5/kdelibs/khtml/dom Message-Id: <1152866978.369528.16958.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=115286699814023 SVN commit 562182 by mueller: now that people blog about how easy it is to crash, lets just fix it M +1 -1 dom_node.cpp --- branches/KDE/3.5/kdelibs/khtml/dom/dom_node.cpp #562181:562182 @@ -273,7 +273,7 @@ NodeImpl *r = impl->replaceChild( newChild.impl, oldChild.impl, exceptioncode ); if (exceptioncode) throw DOMException(exceptioncode); - if (!newChild.impl->closed()) newChild.impl->close(); + if (newChild.impl && !newChild.impl->closed()) newChild.impl->close(); return r; }