Fix FS root lifecycle monitoring.
1.1 --- a/vcscore/src/org/netbeans/modules/vcscore/turbo/TurboUtil.java Sun Sep 05 19:01:53 2004 +0000
1.2 +++ b/vcscore/src/org/netbeans/modules/vcscore/turbo/TurboUtil.java Mon Sep 06 08:38:39 2004 +0000
1.3 @@ -118,17 +118,22 @@
1.4
1.5 FileObject fo = fileObject.getFileObject(fileName);
1.6
1.7 - if (fo.isData()) {
1.8 - fprops = new FileProperties();
1.9 - fprops.setName(fileName);
1.10 - fprops.setStatus(status);
1.11 - fprops.setRevision(revision);
1.12 - Turbo.setMeta(fo, fprops);
1.13 + if (fo == null) {
1.14 + // TODO it disappeared
1.15 + System.out.println("[turbo] FO=" + fo + " child=" + fileName + " disappeared.");
1.16 } else {
1.17 - fprops = new FileProperties();
1.18 - fprops.setName(fileName);
1.19 - fprops.setStatus(status == null ? STATUS_VERSIONED_FOLDER : status);
1.20 - Turbo.setMeta(fo, fprops);
1.21 + if (fo.isData()) {
1.22 + fprops = new FileProperties();
1.23 + fprops.setName(fileName);
1.24 + fprops.setStatus(status);
1.25 + fprops.setRevision(revision);
1.26 + Turbo.setMeta(fo, fprops);
1.27 + } else {
1.28 + fprops = new FileProperties();
1.29 + fprops.setName(fileName);
1.30 + fprops.setStatus(status == null ? STATUS_VERSIONED_FOLDER : status);
1.31 + Turbo.setMeta(fo, fprops);
1.32 + }
1.33 }
1.34 }
1.35