added null check to avoid npe when choosing to show recipients before doing choices

This commit is contained in:
Emil Siverhall 2012-02-12 20:55:57 +01:00
parent 3ebad8d03b
commit d8c7a9e436

@ -235,6 +235,7 @@ public class AdminMailPanel extends Panel {
private void showRecipients(){
ArrayList<String> mailList = new ArrayList<String>();
for(User u : userSet){
if (u!=null)
mailList.add(u.toString() + " (" + u.getEmailAddress() +")");
}
Collections.sort(mailList);