mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user