[jbosstools-commits] JBoss Tools SVN: r42926 - trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Aug 8 09:58:10 EDT 2012


Author: vpakan at redhat.com
Date: 2012-08-08 09:58:10 -0400 (Wed, 08 Aug 2012)
New Revision: 42926

Modified:
   trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java
Log:
Add ignoring errors from Eclipse log which have no associated exception.

Modified: trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java	2012-08-08 13:07:44 UTC (rev 42925)
+++ trunk/jst/tests/org.jboss.tools.jst.ui.bot.test/src/org/jboss/tools/ui/bot/test/JBTSWTBotTestCase.java	2012-08-08 13:58:10 UTC (rev 42926)
@@ -75,9 +75,11 @@
 		switch (status.getSeverity()) {
 		case IStatus.ERROR:
 			Throwable throwable = status.getException();
-			if (throwable == null) {
-				throwable = new Throwable(status.getMessage() + " in " //$NON-NLS-1$
-						+ status.getPlugin());
+			if (throwable == null){
+			  if (!ignoredExceptionsFromEclipseLog.contains("null")) {
+		       throwable = new Throwable(status.getMessage() + " in " //$NON-NLS-1$
+		            + status.getPlugin());
+  			}
 			}
 			else {
 		     // Check if exception has to be ignored



More information about the jbosstools-commits mailing list