From: <ga...@us...> - 2009-10-23 07:44:52
|
Revision: 5685 http://jnode.svn.sourceforge.net/jnode/?rev=5685&view=rev Author: galatnm Date: 2009-10-23 07:44:44 +0000 (Fri, 23 Oct 2009) Log Message: ----------- Fix possible null pointer. Modified Paths: -------------- trunk/fs/src/fs/org/jnode/fs/service/def/FileSystemAPIImpl.java Modified: trunk/fs/src/fs/org/jnode/fs/service/def/FileSystemAPIImpl.java =================================================================== --- trunk/fs/src/fs/org/jnode/fs/service/def/FileSystemAPIImpl.java 2009-10-20 21:23:04 UTC (rev 5684) +++ trunk/fs/src/fs/org/jnode/fs/service/def/FileSystemAPIImpl.java 2009-10-23 07:44:44 UTC (rev 5685) @@ -279,10 +279,10 @@ final String name = child.getName(); // never include the parent directory and the current directory in - // the result - // if they exist by any chance - if (name.equals(".") || name.equals("..")) + // the result if they exist by any chance. + if (".".equals(name) || "..".equals(name)){ continue; + } entryPath.append(name); entryCache.setEntry(entryPath.toString(), child); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |