diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-01 21:21:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-02 09:14:52 +0100 |
commit | 2267dbba29a261c2cff7e86215d3eab10b637b3d (patch) | |
tree | 51d165ad25b7f24b1d0f7a015dc8fcdd5b9ee64e /vcl | |
parent | 17dded391d0e3e9045b80095c51cb43a43319857 (diff) |
coverity#1242421 Dereference after null check
Change-Id: Iaeac53bd0a9c70cd8445e336400d51bf90b69fed
Diffstat (limited to 'vcl')
-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 0a1eabf0bfce..f7ab58f08388 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -1746,7 +1746,7 @@ vcl::Window *VclBuilder::insertObject(vcl::Window *pParent, const OString &rClas //toplevels default to resizable and apparently you can't change them //afterwards, so we need to wait until now before we can truly //initialize the dialog. - if (pParent->IsSystemWindow()) + if (pParent && pParent->IsSystemWindow()) { SystemWindow *pSysWin = static_cast<SystemWindow*>(pCurrentChild); pSysWin->doDeferredInit(extractDeferredBits(rProps)); |