mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Possible build fix. Do not close result set before reading it in WebProjectServiceImpl.getWebProjectsRoot()
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14721 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -457,6 +457,7 @@ public class WebProjectServiceImpl extends WCMUtil implements WebProjectService
|
|||||||
// More than one root web projects folder exits
|
// More than one root web projects folder exits
|
||||||
throw new AlfrescoRuntimeException("More than one root 'Web Projects' folder exists");
|
throw new AlfrescoRuntimeException("More than one root 'Web Projects' folder exists");
|
||||||
}
|
}
|
||||||
|
this.webProjectsRootNodeRef = resultSet.getNodeRef(0);
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
@@ -464,9 +465,7 @@ public class WebProjectServiceImpl extends WCMUtil implements WebProjectService
|
|||||||
{
|
{
|
||||||
resultSet.close();
|
resultSet.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.webProjectsRootNodeRef = resultSet.getNodeRef(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.webProjectsRootNodeRef;
|
return this.webProjectsRootNodeRef;
|
||||||
|
Reference in New Issue
Block a user