diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-24 10:39:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-24 16:35:57 +0000 |
commit | a5f9e77e98b63ccf2be01d9850be122e9742b157 (patch) | |
tree | 25c89c15b1cdfa3190f898f41dfc85b26eefd828 | |
parent | f47080cb24e19d6b2356307c46bfc587a3f53c69 (diff) |
coverity#1242421 Dereference after null check
Change-Id: I18441a147ed74ad2fc8a952ced1320b8b26e3ea9
-rw-r--r-- | vcl/source/window/builder.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index bac546eda43d..e0dba6435e4d 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -2397,7 +2397,7 @@ void VclBuilder::handleAtkObject(xmlreader::XmlReader &reader, const OString &rI const OString &rKey = aI->first; const OString &rValue = aI->second; - if (rKey.match("AtkObject::")) + if (pWindow && rKey.match("AtkObject::")) pWindow->set_property(rKey.copy(RTL_CONSTASCII_LENGTH("AtkObject::")), rValue); else SAL_WARN("vcl.layout", "unhandled atk prop: " << rKey.getStr()); |