Author: psrna
Date: 2011-08-08 05:16:51 -0400 (Mon, 08 Aug 2011)
New Revision: 33666
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfigurator.java
Log:
NPE fixed
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfigurator.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfigurator.java 2011-08-08
06:25:41 UTC (rev 33665)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/config/TestConfigurator.java 2011-08-08
09:16:51 UTC (rev 33666)
@@ -91,8 +91,8 @@
String propFile = System.getProperty(SWTBOT_TEST_PROPERTIES_FILE,
null);
String configsDir=System.getProperty(CONFIGURATIONS_DIR,null);
- File configsDirFile=new File(configsDir);
if (configsDir != null) {
+ File configsDirFile=new File(configsDir);
if (!configsDirFile.exists()) {
throw new IOException(CONFIGURATIONS_DIR
+ " " + configsDir + " does not exist!");