mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 06:53:09 +00:00
[DS-707] Null handling
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5578 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -681,7 +681,7 @@ public class Item extends DSpaceObject
|
||||
dcv.schema = schema;
|
||||
dcv.element = element;
|
||||
dcv.qualifier = qualifier;
|
||||
dcv.language = (lang == null ? lang : lang.trim());
|
||||
dcv.language = (lang == null ? null : lang.trim());
|
||||
|
||||
// Logic to set Authority and Confidence:
|
||||
// - normalize an empty string for authority to NULL.
|
||||
|
@@ -51,6 +51,7 @@ import javax.servlet.ServletException;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.dspace.app.util.AuthorizeUtil;
|
||||
import org.dspace.app.webui.servlet.DSpaceServlet;
|
||||
@@ -519,7 +520,7 @@ public class CollectionWizardServlet extends DSpaceServlet
|
||||
// nothing was entered
|
||||
String license = wrapper.getParameter("license");
|
||||
|
||||
if ((license != null) || "".equals(license))
|
||||
if (!StringUtils.isEmpty(license))
|
||||
{
|
||||
collection.setLicense(license);
|
||||
}
|
||||
|
Reference in New Issue
Block a user