diff options
-rw-r--r-- | qadevOOo/runner/util/AccessibilityTools.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qadevOOo/runner/util/AccessibilityTools.java b/qadevOOo/runner/util/AccessibilityTools.java index 85cd442a3b84..1b59b251181d 100644 --- a/qadevOOo/runner/util/AccessibilityTools.java +++ b/qadevOOo/runner/util/AccessibilityTools.java @@ -110,7 +110,9 @@ public class AccessibilityTools { public static XAccessibleContext getAccessibleObjectForRoleIgnoreShowing_(XAccessible xacc, short role) { XAccessibleContext ac = xacc.getAccessibleContext(); - + if (ac == null) { + return null; + } if (ac.getAccessibleRole() == role) { SearchedAccessible = xacc; return ac; @@ -443,4 +445,4 @@ public class AccessibilityTools { private static void logging(PrintWriter log, String content){ if (debug) log.println(content); } -}
\ No newline at end of file +} |