added back null handling, which I inadevertently dropped in favor of emptystring handling

This commit is contained in:
Hardy Pottinger
2015-02-17 19:20:33 +00:00
parent e718f9d996
commit c9da7f2aad

View File

@@ -482,7 +482,7 @@ public class ControlPanel extends AbstractDSpaceTransformer implements Serviceab
* @param value candidate string.
* @return {@code value} or a constant indicating an unset value.
*/
private static String notempty(String value) { return "".equals(value) ? T_UNSET : value; }
private static String notempty(String value) { return "".equals(value) || null == value ? T_UNSET : value; }
/**
* List important DSpace configuration parameters.