summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-24 10:39:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-24 16:35:57 +0000
commita5f9e77e98b63ccf2be01d9850be122e9742b157 (patch)
tree25c89c15b1cdfa3190f898f41dfc85b26eefd828
parentf47080cb24e19d6b2356307c46bfc587a3f53c69 (diff)
coverity#1242421 Dereference after null check
Change-Id: I18441a147ed74ad2fc8a952ced1320b8b26e3ea9
-rw-r--r--vcl/source/window/builder.cxx2
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());