Ignore:
Timestamp:
Feb 5, 2011, 9:25:06 PM (13 years ago)
Author:
gav
Message:

Add some null checking to AssetService.getAssemblies and assetTreeCompact template.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/features/taskProcedureRework/grails-app/services/AssetService.groovy

    r776 r787  
    3030    * @returns A list of the assemblies.
    3131    */
    32     def getAssemblies(Asset asset) {
     32    def getAssemblies(asset) {
    3333        def assemblies = []
     34        if(!(asset instanceof Asset))
     35            return assemblies
    3436        // Database efficiency:
    3537        // The asset is configured to batch fetch assetSubItems which
Note: See TracChangeset for help on using the changeset viewer.