summaryrefslogtreecommitdiff
path: root/src/svg
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@nokia.com>2010-04-28 11:05:29 +0200
committerPaul Olav Tvete <paul.tvete@nokia.com>2010-04-28 12:25:02 +0200
commit18480fd6cec52722d9d096991790e32837a7ebd8 (patch)
treec342db3ffda029954debbb2d50df69b78519f1f8 /src/svg
parentf35b1fd3807c634f5fe60efecd401db7683a37fb (diff)
downloadqt4-tools-18480fd6cec52722d9d096991790e32837a7ebd8.tar.gz
Null pointer check
Fixes crash for certain SVGs Reviewed-by: Kim
Diffstat (limited to 'src/svg')
-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 b6e771fc74..d54544042a 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) {