Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/commands/AbstractStartToolkitAut.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/commands/AbstractStartToolkitAut.java b/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/commands/AbstractStartToolkitAut.java
index cbb7e19db..75b848130 100644
--- a/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/commands/AbstractStartToolkitAut.java
+++ b/org.eclipse.jubula.autagent/src/org/eclipse/jubula/autagent/commands/AbstractStartToolkitAut.java
@@ -295,12 +295,15 @@ public abstract class AbstractStartToolkitAut implements IStartAut {
}
} else {
Enumeration<URL> e = bundle.findEntries(
- "/", "*.jar", true); //$NON-NLS-1$//$NON-NLS-2$
- while (e.hasMoreElements()) {
- URL jarUrl = e.nextElement();
- classpathEntries.add(
- new File(bundleFile + jarUrl.getFile())
- .getAbsolutePath());
+ "/", "*.jar", true);
+ if (e != null) {
+ //$NON-NLS-1$//$NON-NLS-2$
+ while (e.hasMoreElements()) {
+ URL jarUrl = e.nextElement();
+ classpathEntries.add(
+ new File(bundleFile + jarUrl.getFile())
+ .getAbsolutePath());
+ }
}
}
} catch (IOException ioe) {

Back to the top