From e39bf3677109976cae13e1bdff044e2d5769c098 Mon Sep 17 00:00:00 2001 From: jan iversen Date: Thu, 21 Jan 2016 19:54:46 +0100 Subject: cid#1326191, 1326202 Null references elements, introduced throw Change-Id: I22bf7de5f20c3ca455df31de2a5d7301b436ed82 Reviewed-on: https://gerrit.libreoffice.org/21691 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- qadevOOo/tests/java/ifc/accessibility/_XAccessibleText.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qadevOOo/tests/java') 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); -- cgit