summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-13 20:46:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-15 10:21:23 +0100
commit035d62ef915ac8bd0b93fac45f7cb228ade25c19 (patch)
tree5b94c1443bbf4fb1b33d2917a5ab5a1c62c8cb3c /sw
parent9f09218d4e9f931e8d2d519872a5fe72f06f529b (diff)
coverity#705482 Dereference null return value
Change-Id: Id50d79c2dddc3105821703fb9773128c0cc6f2f3
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/access/acccontext.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sw/source/core/access/acccontext.cxx b/sw/source/core/access/acccontext.cxx
index e12f4ae69f02..1e84758477ac 100644
--- a/sw/source/core/access/acccontext.cxx
+++ b/sw/source/core/access/acccontext.cxx
@@ -906,8 +906,10 @@ awt::Point SAL_CALL SwAccessibleContext::getLocationOnScreen()
Point aPixPos(aRect.X, aRect.Y);
- /* getBoundsImpl already checked that GetWindow returns valid pointer. */
- aPixPos = GetWindow()->OutputToAbsoluteScreenPixel(aPixPos);
+ Window *pWin = GetWindow();
+ CHECK_FOR_WINDOW( XAccessibleComponent, pWin )
+
+ aPixPos = pWin->OutputToAbsoluteScreenPixel(aPixPos);
awt::Point aPoint(aPixPos.getX(), aPixPos.getY());
return aPoint;