From 0a0e7bfef1d6cb73f1bfa4c46c96493ca3cf5cfd Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 3 Jan 2007 05:56:09 +0000 Subject: [PATCH] bug fix. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1597 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/scm/CVSSCM.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/hudson/scm/CVSSCM.java b/core/src/main/java/hudson/scm/CVSSCM.java index fed30b8435..1c15e34f92 100644 --- a/core/src/main/java/hudson/scm/CVSSCM.java +++ b/core/src/main/java/hudson/scm/CVSSCM.java @@ -207,6 +207,11 @@ public class CVSSCM extends AbstractCVSFamilySCM implements Serializable { String m = tokens.nextToken(); File mf = new File(ws, m); + if(!mf.exists()) + // directory doesn't exist. This happens if a directory that was checked out + // didn't include any file. + continue; + if(!mf.isDirectory()) { // this module is just a file, say "foo/bar.txt". // to record "foo/CVS/*", we need to start by archiving "foo".