diff options
author | Robert Antoni Buj i Gelonch <robert.buj@gmail.com> | 2014-10-11 20:27:09 +0200 |
---|---|---|
committer | Matthew Francis <mjay.francis@gmail.com> | 2014-10-14 07:20:01 +0000 |
commit | 23e4eb6aeb77c74f5ff8a6a70f7adbe52e1c34e7 (patch) | |
tree | 0ec817989797f996bc2aff50aaa85dc4ead13a2b /qadevOOo/runner/util | |
parent | 1210ad69d85ffff36da6506d945b6f4ebd0fd33d (diff) |
runner: Null pointer dereference
Change-Id: Id38a9e0bddbf3c9038abbc5de7137ee5d3f39db6
Reviewed-on: https://gerrit.libreoffice.org/11924
Reviewed-by: Matthew Francis <mjay.francis@gmail.com>
Tested-by: Matthew Francis <mjay.francis@gmail.com>
Diffstat (limited to 'qadevOOo/runner/util')
-rw-r--r-- | qadevOOo/runner/util/AccessibilityTools.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qadevOOo/runner/util/AccessibilityTools.java b/qadevOOo/runner/util/AccessibilityTools.java index 76136e6fb04d..a0f1612845d0 100644 --- a/qadevOOo/runner/util/AccessibilityTools.java +++ b/qadevOOo/runner/util/AccessibilityTools.java @@ -65,13 +65,13 @@ public class AccessibilityTools { if (xFrame == null) { System.out.println("can't get frame from controller"); + } else { + if (containerWindow) + xWindow = xFrame.getContainerWindow(); + else + xWindow = xFrame.getComponentWindow(); } - if (containerWindow) - xWindow = xFrame.getContainerWindow(); - else - xWindow = xFrame.getComponentWindow(); - if (xWindow == null) { System.out.println("can't get window from frame"); } |