Added a null pointer check after splitting the relative path when checking if the path is to a pseudo file/desktop action. ETHREEOH-217.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11102 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2008-09-30 15:23:37 +00:00
parent a7aa0d92f5
commit 1ba9b17909

View File

@@ -71,6 +71,12 @@ public class PseudoFileImpl implements PseudoFileInterface
String[] paths = FileName.splitPath( path);
FileState fstate = getStateForPath( ctx, paths[0]);
// Check if there is a file name from the path splitting
if ( paths[1] != null) {
// Check the pseudo file list, if available
if ( fstate != null && fstate.hasPseudoFiles())
{
// Check if there is a matching pseudo file
@@ -100,6 +106,7 @@ public class PseudoFileImpl implements PseudoFileInterface
isPseudo = true;
}
}
}
// Return the pseudo file status