mirror of
				https://github.com/Alfresco/alfresco-community-repo.git
				synced 2025-10-29 15:21:53 +00:00 
			
		
		
		
	Merged V2.1 to HEAD
6308: Various RM bug fixes
   6343: Minor config cleanup for RM bootstrap
            Conflict resolved
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6719 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
			
			
This commit is contained in:
		@@ -51,10 +51,8 @@ import org.alfresco.service.cmr.repository.StoreRef;
 | 
			
		||||
import org.alfresco.service.namespace.QName;
 | 
			
		||||
import org.apache.log4j.Logger;
 | 
			
		||||
import org.mozilla.javascript.Context;
 | 
			
		||||
import org.mozilla.javascript.NativeArray;
 | 
			
		||||
import org.mozilla.javascript.Scriptable;
 | 
			
		||||
import org.mozilla.javascript.ScriptableObject;
 | 
			
		||||
import org.mozilla.javascript.Wrapper;
 | 
			
		||||
import org.springframework.util.FileCopyUtils;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
@@ -538,7 +536,10 @@ public class RhinoScriptProcessor extends BaseProcessor implements ScriptProcess
 | 
			
		||||
     */
 | 
			
		||||
    private Map<String, Object> convertToRhinoModel(Map<String, Object> model)
 | 
			
		||||
    {
 | 
			
		||||
        Map<String, Object> newModel = new HashMap<String, Object>(model.size());
 | 
			
		||||
    	Map<String, Object> newModel = null;
 | 
			
		||||
    	if (model != null)
 | 
			
		||||
    	{
 | 
			
		||||
	        newModel = new HashMap<String, Object>(model.size());
 | 
			
		||||
	        for (Map.Entry<String, Object> entry : model.entrySet())
 | 
			
		||||
	        {
 | 
			
		||||
	            if (entry.getValue() instanceof NodeRef)
 | 
			
		||||
@@ -550,6 +551,11 @@ public class RhinoScriptProcessor extends BaseProcessor implements ScriptProcess
 | 
			
		||||
	                newModel.put(entry.getKey(), entry.getValue());
 | 
			
		||||
	            }
 | 
			
		||||
	        }
 | 
			
		||||
    	}
 | 
			
		||||
    	else
 | 
			
		||||
    	{
 | 
			
		||||
    		newModel = new HashMap<String, Object>(0);
 | 
			
		||||
    	}
 | 
			
		||||
        return newModel;
 | 
			
		||||
    }
 | 
			
		||||
        
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user