summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2010-04-28 09:05:29 (GMT)
committerPaul Olav Tvete <paul.tvete@nokia.com>2010-04-28 10:25:02 (GMT)
commit18480fd6cec52722d9d096991790e32837a7ebd8 (patch)
treec342db3ffda029954debbb2d50df69b78519f1f8
parentf35b1fd3807c634f5fe60efecd401db7683a37fb (diff)
downloadQt-18480fd6cec52722d9d096991790e32837a7ebd8.zip
Qt-18480fd6cec52722d9d096991790e32837a7ebd8.tar.gz
Qt-18480fd6cec52722d9d096991790e32837a7ebd8.tar.bz2
Null pointer check
Fixes crash for certain SVGs Reviewed-by: Kim
-rw-r--r--src/svg/qsvghandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
index b6e771f..d545440 100644
--- a/src/svg/qsvghandler.cpp
+++ b/src/svg/qsvghandler.cpp
@@ -3751,7 +3751,7 @@ bool QSvgHandler::characters(const QStringRef &str)
QCss::Parser(css).parse(&sheet);
m_selector->styleSheets.append(sheet);
return true;
- } else if (m_skipNodes.isEmpty() || m_skipNodes.top() == Unknown)
+ } else if (m_skipNodes.isEmpty() || m_skipNodes.top() == Unknown || m_nodes.isEmpty())
return true;
if (m_nodes.top()->type() == QSvgNode::TEXT || m_nodes.top()->type() == QSvgNode::TEXTAREA) {