From d18cfdae603eb70d141950d75ec9717e10621dfa Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 2 Aug 2012 17:23:20 +0200 Subject: [PATCH] EA-37872 (diagnostic) --- .../openapi/vfs/newvfs/persistent/RefreshWorker.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/RefreshWorker.java b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/RefreshWorker.java index 99e03336ee61..cbf390134cdc 100644 --- a/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/RefreshWorker.java +++ b/platform/platform-impl/src/com/intellij/openapi/vfs/newvfs/persistent/RefreshWorker.java @@ -15,6 +15,7 @@ */ package com.intellij.openapi.vfs.newvfs.persistent; +import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.util.Comparing; import com.intellij.openapi.util.io.FileAttributes; import com.intellij.openapi.vfs.VfsUtil; @@ -35,6 +36,8 @@ import java.util.*; * @author max */ public class RefreshWorker { + private static final Logger LOG = Logger.getInstance("#com.intellij.openapi.vfs.newvfs.persistent.RefreshWorker"); + private final boolean myIsRecursive; private final Queue myRefreshQueue = new Queue(100); private final List myEvents = new ArrayList(); @@ -103,7 +106,13 @@ public class RefreshWorker { for (VirtualFile child : file.getChildren()) { if (!deletedNames.contains(child.getName())) { - checkAndScheduleChildRefresh(file, child, fs.getAttributes(child)); + final FileAttributes childAttributes = fs.getAttributes(child); + if (attributes != null) { + checkAndScheduleChildRefresh(file, child, childAttributes); + } + else { + LOG.error(child + " on " + fs); + } } } }