Copying from list to list
I have a list
List result = pm.select(SupremeApplicationElement.class, attName, args);
I want to copy just the elements with "POP" in the description
List pop_result =null;
for(int k=0; k<result.size(); k++){
String s =(String) ((SupremeApplicationElement) result.get(k)).getAttribute("description");
if(s.equals("POP")){
pop_result .add(result.get(k));
model_pop.setAttribute("popRes",pop_result);
}
}
But I'm getting Null pointer exception... Help pls..>

