summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Iacovitti <aiacovitti@libero.it>2012-04-13 10:24:23 (GMT)
committerAndrea Iacovitti <aiacovitti@libero.it>2012-04-13 10:24:23 (GMT)
commit6f8d94f5c2ff8078cfcfcc1f9ce6d23d815cd86c (patch)
treeff42861b4ca782596737c574ec0bbfa85f392dae
parent8f0444eb7f33db9f955f7c12f5b8728c27f16d16 (diff)
Check for null pointer.
Fix crash that could occur when oxygen animations are enabled. BUG: 249453 297967 297901 285158 271466 FIXED-IN: 4.8.3
-rw-r--r--khtml/khtmlview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/khtml/khtmlview.cpp b/khtml/khtmlview.cpp
index c15578d..d26014e 100644
--- a/khtml/khtmlview.cpp
+++ b/khtml/khtmlview.cpp
@@ -858,7 +858,7 @@ void KHTMLView::resizeEvent (QResizeEvent* /*e*/)
if (m_part->parentPart()) {
// sub-frame : queue the resize event until our toplevel is done layouting
khtml::ChildFrame *cf = m_part->parentPart()->frame( m_part );
- if (!cf->m_partContainerElement.isNull())
+ if (cf && !cf->m_partContainerElement.isNull())
cf->m_partContainerElement.data()->postResizeEvent();
} else {
// toplevel : dispatch sub-frames'resize events before our own