Author: dgolovin
Date: 2011-08-16 13:52:57 -0400 (Tue, 16 Aug 2011)
New Revision: 33980
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ProblemsView.java
Log:
NullPointerException fixed.
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ProblemsView.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ProblemsView.java 2011-08-16
17:03:36 UTC (rev 33979)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ProblemsView.java 2011-08-16
17:52:57 UTC (rev 33980)
@@ -51,7 +51,7 @@
public static SWTBotTreeItem[] getFilteredWarningsTreeItems(SWTBotExt bot, String
descriptionContains, String pathStartsWith,
String resourceText,String typeText){
- SWTBotTreeItem[] warningsTreeItems = null;
+ SWTBotTreeItem[] warningsTreeItems = new SWTBotTreeItem[0];
SWTBotTreeItem warningsNode = ProblemsView.getWarningsNode(bot);
SWTBotTree tree = bot.tree();
if (warningsNode != null){
@@ -77,7 +77,7 @@
public static SWTBotTreeItem[] getFilteredErrorsTreeItems(SWTBotExt bot, String
descriptionContains, String pathStartsWith,
String resourceText,String typeText){
- SWTBotTreeItem[] errorsTreeItems = null;
+ SWTBotTreeItem[] errorsTreeItems = new SWTBotTreeItem[0];
SWTBotTreeItem errorsNode = ProblemsView.getErrorsNode(bot);
SWTBotTree tree = bot.tree();
if (errorsNode != null){
Show replies by date