From kde-commits Sun Feb 11 15:58:28 2007 From: Harri Porten Date: Sun, 11 Feb 2007 15:58:28 +0000 To: kde-commits Subject: branches/KDE/3.5/kdelibs/khtml/html Message-Id: <1171209508.594973.32172.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117120951814319 SVN commit 632543 by porten: prevent crash reported in #105899. whether this report was really a duplicate of #74569 I don't know. Unlike in the other backtraces we had a easy-to-catch null pointer here. M +1 -1 html_formimpl.cpp --- branches/KDE/3.5/kdelibs/khtml/html/html_formimpl.cpp #632542:632543 @@ -512,7 +512,7 @@ m_havePassword = false; m_haveTextarea = false; const KURL formUrl(getDocument()->URL()); - if (!view->nonPasswordStorableSite(formUrl.host())) { + if (view && !view->nonPasswordStorableSite(formUrl.host())) { for (QPtrListIterator it(formElements); it.current(); ++it) { if (it.current()->id() == ID_INPUT) { HTMLInputElementImpl* const c = static_cast (it.current());