diff options
author | Paul Olav Tvete <paul.tvete@nokia.com> | 2010-04-28 11:05:29 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@nokia.com> | 2010-04-28 12:25:02 +0200 |
commit | 18480fd6cec52722d9d096991790e32837a7ebd8 (patch) | |
tree | c342db3ffda029954debbb2d50df69b78519f1f8 /src/svg | |
parent | f35b1fd3807c634f5fe60efecd401db7683a37fb (diff) | |
download | qt4-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.cpp | 2 |
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) { |