guard this check to only detect files (or convertRelative goes AIOOBE for .)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1506537 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2013-07-24 12:58:25 +00:00
parent bd1627fa3c
commit 312b648e60
1 changed files with 5 additions and 3 deletions

View File

@ -108,9 +108,11 @@
} else if (status.getKind() == SVNNodeKind.FILE && nodeStatus != SVNStatusType.STATUS_DELETED) { } else if (status.getKind() == SVNNodeKind.FILE && nodeStatus != SVNStatusType.STATUS_DELETED) {
missingProps.add(convertRelative(status.getFile())); missingProps.add(convertRelative(status.getFile()));
} }
if (nodeStatus == SVNStatusType.STATUS_MODIFIED || nodeStatus == SVNStatusType.STATUS_REPLACED || if (status.getKind() == SVNNodeKind.FILE) {
nodeStatus == SVNStatusType.STATUS_DELETED || nodeStatus == SVNStatusType.STATUS_ADDED) { if (nodeStatus == SVNStatusType.STATUS_MODIFIED || nodeStatus == SVNStatusType.STATUS_REPLACED ||
changed.add(convertRelative(status.getFile())); nodeStatus == SVNStatusType.STATUS_DELETED || nodeStatus == SVNStatusType.STATUS_ADDED) {
changed.add(convertRelative(status.getFile()));
}
} }
} as ISVNStatusHandler, null); } as ISVNStatusHandler, null);