Commit 3450e84f authored by Bill Lynch's avatar Bill Lynch Committed by bill

Minor fix


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1106 b35dd754-fafc-0310-a699-88a17e54d16e
parent ab2a5765
...@@ -84,24 +84,26 @@ public class SubDirInfoTask extends Task { ...@@ -84,24 +84,26 @@ public class SubDirInfoTask extends Task {
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
String value = null; String value = null;
String sep = ""; String sep = "";
for (int i=0; i<subdirs.length; i++) { if (subdirs != null) {
File subdir = subdirs[i]; for (int i=0; i<subdirs.length; i++) {
boolean add = false; File subdir = subdirs[i];
if (subdir.isDirectory()) { boolean add = false;
if (getIfexists() != null) { if (subdir.isDirectory()) {
File file = new File(subdir, getIfexists()); if (getIfexists() != null) {
if (file.exists()) { File file = new File(subdir, getIfexists());
if (file.exists()) {
add = true;
}
}
else {
add = true; add = true;
} }
} }
else { if (add && !subdir.getName().equals(except)) {
add = true; buf.append(sep).append(subdir.getName());
sep = getDelimiter();
} }
} }
if (add && !subdir.getName().equals(except)) {
buf.append(sep).append(subdir.getName());
sep = getDelimiter();
}
} }
if (buf.length() > 0) { if (buf.length() > 0) {
value = buf.toString(); value = buf.toString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment