Index: /branches/features/taskProcedureRework/grails-app/services/AssetService.groovy =================================================================== --- /branches/features/taskProcedureRework/grails-app/services/AssetService.groovy (revision 786) +++ /branches/features/taskProcedureRework/grails-app/services/AssetService.groovy (revision 787) @@ -30,6 +30,8 @@ * @returns A list of the assemblies. */ - def getAssemblies(Asset asset) { + def getAssemblies(asset) { def assemblies = [] + if(!(asset instanceof Asset)) + return assemblies // Database efficiency: // The asset is configured to batch fetch assetSubItems which Index: /branches/features/taskProcedureRework/grails-app/views/shared/_assetTreeCompact.gsp =================================================================== --- /branches/features/taskProcedureRework/grails-app/views/shared/_assetTreeCompact.gsp (revision 786) +++ /branches/features/taskProcedureRework/grails-app/views/shared/_assetTreeCompact.gsp (revision 787) @@ -1,7 +1,10 @@ + +<%-- Fetch to prevent lazy initialization error. --%> +<% assetInstance = Asset.read(assetInstance?.id)%>