diff options
Diffstat (limited to 'qadevOOo/tests/java')
-rw-r--r-- | qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java index 9f4f5c090450..92082d34bc79 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java @@ -475,8 +475,15 @@ public class _XAccessibleText extends MultiMethodTest { } catch (com.sun.star.lang.IllegalArgumentException e) { } + if (aRect == null) { + res = false; + log.print("aRect unexpected null"); + break; + } + int x = aRect.X + (aRect.Width / 2); int y = aRect.Y + (aRect.Height / 2); + Point aPoint = new Point(x, y); int nIndex = oObj.getIndexAtPoint(aPoint); |