Author: ljelinko
Date: 2011-11-29 08:04:11 -0500 (Tue, 29 Nov 2011)
New Revision: 36725
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/console/ConsoleOutputMatcher.java
Log:
fixed nullpointer
Modified:
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/console/ConsoleOutputMatcher.java
===================================================================
---
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/console/ConsoleOutputMatcher.java 2011-11-29
12:28:02 UTC (rev 36724)
+++
trunk/portlet/tests/org.jboss.tools.portlet.ui.bot.test/src/org/jboss/tools/portlet/ui/bot/matcher/console/ConsoleOutputMatcher.java 2011-11-29
13:04:11 UTC (rev 36725)
@@ -17,6 +17,9 @@
@Override
public boolean matchesSafely(String item) {
consoleText = SWTBotFactory.getConsole().getConsoleText();
+ if (consoleText == null){
+ consoleText = "";
+ }
return consoleText.contains(item);
}
Show replies by date