It's all about the answers!

Ask a question

How can i set the value for attribute of type TeamAreaList

Amol Ramteke (133) | asked Jul 20 '11, 7:15 a.m.
How can i set the value for attribute of type TeamAreaList
i have written a code but geting a null pointer exception on fetchItem method.

List<ITeamAreaHandle> listTeams = projectArea.getTeamAreaHierarchy().getTeamAreas();

listTeamAreas = WorkItemInitialization.readFile(fFilePath);

ITeamAreaHandle teamAreaHandle1 =null;
int size = listTeamAreas.size();
if(listTeamAreas!=null && !listTeamAreas.isEmpty()){
Team crbTeam = null;
List<ITeamArea> cachedTeamArea = new ArrayList<ITeamArea>();
List<Team> teams = null;
for (Team team : listTeamAreas){
for(ITeamAreaHandle team1: listTeams){
// teamArea = WorkItemInitialization.fetchTeamArea(team, projectArea, monitor,cachedTeamArea);
// teamArea = (ITeamArea) service.getMutableCopy(teamArea);
ITeamArea teamArea = fetchItem(team1, monitor);

Be the first one to answer this question!

Register or to post your answer.