ARTEMIS-1058 Fixing testsuite
Possible NPE that will happen on ReplicatedFailoverTest only
This commit is contained in:
parent
8edca409f6
commit
b80a78d885
|
@ -141,6 +141,11 @@ public class SpawnedVMSupport {
|
||||||
|
|
||||||
StringBuilder stringBuilder = new StringBuilder();
|
StringBuilder stringBuilder = new StringBuilder();
|
||||||
boolean empty = true;
|
boolean empty = true;
|
||||||
|
File[] files = libfolder.listFiles();
|
||||||
|
|
||||||
|
if (files == null) {
|
||||||
|
return getClassPath();
|
||||||
|
} else {
|
||||||
for (File f : libfolder.listFiles()) {
|
for (File f : libfolder.listFiles()) {
|
||||||
if (f.getName().endsWith(".jar") || f.getName().endsWith(".zip")) {
|
if (f.getName().endsWith(".jar") || f.getName().endsWith(".zip")) {
|
||||||
if (!empty) {
|
if (!empty) {
|
||||||
|
@ -150,6 +155,7 @@ public class SpawnedVMSupport {
|
||||||
stringBuilder.append(f.toString());
|
stringBuilder.append(f.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return stringBuilder.toString();
|
return stringBuilder.toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue