Commit ddc2ad63 authored by toaster's avatar toaster
Browse files

null check

git-svn-id: https://subversion.umiacs.umd.edu/ace/trunk@139 f1b3a171-7291-4a19-a512-95ad0ad9394a
parent 93ac439b
......@@ -38,6 +38,7 @@ import edu.umiacs.util.Strings;
import java.io.IOException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.HashMap;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.Query;
......@@ -240,6 +241,9 @@ public class ManageCollectionServlet extends EntityManagerServlet {
col.setGroup(req.getParameter(PARAM_GROUP));
}
if (col.getSettings() == null)
col.setSettings(new HashMap<String, String>());
if (!Strings.isEmpty(req.getParameter(PARAM_EMAILLIST))) {
// col.setEmailList(req.getParameter(PARAM_EMAILLIST));
col.getSettings().put(ConfigConstants.ATTR_EMAIL_RECIPIENTS, req.getParameter(PARAM_EMAILLIST));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment