Author: vpakan(a)redhat.com
Date: 2012-02-23 16:41:05 -0500 (Thu, 23 Feb 2012)
New Revision: 39076
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java
Log:
Fixes for maven integration
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java 2012-02-23
21:29:48 UTC (rev 39075)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java 2012-02-23
21:41:05 UTC (rev 39076)
@@ -1354,7 +1354,9 @@
LinkedList<SWTBotTreeItem> treeItems = new LinkedList<SWTBotTreeItem>();
if (parent != null){
- if (expand) {
+ if (expand
+ && parent.getItems() != null
+ && parent.getItems().length > 0) {
parent.expand();
bot.sleep(SWTEclipseExt.DEFAULT_UI_TIMEOUT);
}
Show replies by date