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:
Gary Spencer
2006-11-20 15:20:52 +00:00
parent 97cb403335
commit 51b546432d

View File

@@ -493,7 +493,7 @@ public class NavigationBean
// resolve CIFS network folder location for this node
DiskSharedDevice diskShare = cifsServer.getConfiguration().getPrimaryFilesystem();
if (diskShare != null)
if (diskShare != null && diskShare.getContext() instanceof ContentContext)
{
ContentContext contentCtx = (ContentContext) diskShare.getContext();
NodeRef rootNode = contentCtx.getRootNode();