mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Added check for the repo driver context class in getCurrentNode(), as the primary filesystem might be an AVM share which
causes a ClassCastException. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4396 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -493,7 +493,7 @@ public class NavigationBean
|
|||||||
// resolve CIFS network folder location for this node
|
// resolve CIFS network folder location for this node
|
||||||
DiskSharedDevice diskShare = cifsServer.getConfiguration().getPrimaryFilesystem();
|
DiskSharedDevice diskShare = cifsServer.getConfiguration().getPrimaryFilesystem();
|
||||||
|
|
||||||
if (diskShare != null)
|
if (diskShare != null && diskShare.getContext() instanceof ContentContext)
|
||||||
{
|
{
|
||||||
ContentContext contentCtx = (ContentContext) diskShare.getContext();
|
ContentContext contentCtx = (ContentContext) diskShare.getContext();
|
||||||
NodeRef rootNode = contentCtx.getRootNode();
|
NodeRef rootNode = contentCtx.getRootNode();
|
||||||
|
Reference in New Issue
Block a user