Show
Ignore:
Timestamp:
01/15/09 19:40:39 (4 years ago)
Author:
lmajano
Message:

Fix when retrieveing sof reference lookbacks if not found.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • coldbox/trunk/system/cache/ObjectPool.cfc

    r1778 r1976  
    6060         
    6161        <!--- Get the ref key ---> 
    62         <cffunction name="getSoftRefKey" access="public" returntype="any" hint="Get the soft reference's key" output="false" > 
     62        <cffunction name="getSoftRefKey" access="public" returntype="any" hint="Get the soft reference's key from the soft reference lookback map" output="false" > 
    6363                <cfargument name="softRef" required="true" type="any" hint="The soft reference to check"> 
    6464                <cfscript> 
    6565                        var keyMap = getSoftRefKeyMap(); 
    66                         return keyMap[arguments.softRef]; 
     66                        if( structKeyExists(keyMap,arguments.softRef) ){ 
     67                                return keyMap[arguments.softRef]; 
     68                        } 
     69                        else{ 
     70                                return "NOT_FOUND"; 
     71                        } 
    6772                </cfscript> 
    6873        </cffunction>