[jboss-cvs] JBossAS SVN: r74789 - projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/file.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jun 18 07:09:37 EDT 2008
Author: alesj
Date: 2008-06-18 07:09:37 -0400 (Wed, 18 Jun 2008)
New Revision: 74789
Modified:
projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/file/FileHandler.java
Log:
Fix returned null file handler.
Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/file/FileHandler.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/file/FileHandler.java 2008-06-18 10:28:33 UTC (rev 74788)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/file/FileHandler.java 2008-06-18 11:09:37 UTC (rev 74789)
@@ -181,8 +181,11 @@
{
handler = context.createVirtualFileHandler(this, file);
}
- result.add(handler);
- newCache.put(file.getName(), handler);
+ if (handler != null)
+ {
+ result.add(handler);
+ newCache.put(file.getName(), handler);
+ }
}
catch (IOException e)
{
@@ -212,7 +215,8 @@
{
FileSystemContext context = getVFSContext();
handler = context.createVirtualFileHandler(this, child);
- childCache.put(name, handler);
+ if (handler != null)
+ childCache.put(name, handler);
}
return handler;
}
More information about the jboss-cvs-commits
mailing list