Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Struckmann2015-08-07 08:14:25 -0400
committerSebastian Struckmann2015-08-07 08:14:25 -0400
commitd9a30d503736250b2af173df390628caf32d6053 (patch)
tree6d85589e6e42c18e079f77c49a4ce725523eb036
parent54471730512b1b6608981ccd30ba1fd708ce1b11 (diff)
downloadorg.eclipse.jubula.core-d9a30d503736250b2af173df390628caf32d6053.tar.gz
org.eclipse.jubula.core-d9a30d503736250b2af173df390628caf32d6053.tar.xz
org.eclipse.jubula.core-d9a30d503736250b2af173df390628caf32d6053.zip
Sprint task - Fix possible NPE in JavaFX tree table tests, see http://eclip.se/472053
-rw-r--r--org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/tester/adapter/TreeTableOperationContext.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/tester/adapter/TreeTableOperationContext.java b/org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/tester/adapter/TreeTableOperationContext.java
index d87ff0854..776a046ce 100644
--- a/org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/tester/adapter/TreeTableOperationContext.java
+++ b/org.eclipse.jubula.rc.javafx/src/org/eclipse/jubula/rc/javafx/tester/adapter/TreeTableOperationContext.java
@@ -288,6 +288,10 @@ public class TreeTableOperationContext extends
public void clickNode(final Object node, final ClickOptions clickOps) {
scrollNodeToVisible(node);
Rectangle rowBounds = getNodeBounds(node);
+ if (rowBounds == null) {
+ throw new StepExecutionException("Node not found", //$NON-NLS-1$
+ EventFactory.createActionError(TestErrorEvent.NOT_FOUND));
+ }
Rectangle visibleRowBounds = getVisibleRowBounds(rowBounds);
getRobot().click(getTree(), visibleRowBounds, clickOps);
}

Back to the top