When trying to clone a user defined collection (UDC) the agent list is empty. No agent can be selected.
In the server log file the following error appears:
WARN [http-exec-833] com.quest.wcf.portal.viewcomponents.BaseViewComponent - Error evaluating runtime value in context entry with key agentsLIst
com.quest.wcf.core.module.runtimevalue.RuntimeValueException: com.quest.wcf.publicapi.code.FunctionInvocationException: Error executing script id=system:oracle_GA_Database_custom20collection.29 name="'get Agent Models from Agent Names' from the System module Databases/Oracle/Global Administration/Databases Screens/Custom Collection"
message: com.quest.nitro.service.sl.interfaces.scripting.ScriptingException: com.quest.nitro.service.sl.interfaces.scripting.ScriptAbortException: java.lang.NullPointerException: Cannot invoke method equalsIgnoreCase() on null object
----script start------
package system._oracle_GA_Database_custom20collection.scripts;
qs = server.get("QueryService");
agents = qs.queryTopologyObjects("DBO_Agent_Model");
resList = [];
aAgentNamesList = aAgentNamesList.split(",");
for(agentName in aAgentNamesList){
for (agent in agents){
if (agentName.equals(agent.getName())){
if(!agent.get("type").equalsIgnoreCase("DB_Oracle_RAC_Instance")){
resList.add(agent);
}
}
}
}
return resList;
---- script end ------