In favor of a reusable design, you should consider using a default value for null values, like the Apache common defaultString API, something like this:
public String getValue(String value){ return StringUtils.defaultString(value); }
You can also use defaultString(String str,String defaultStr) so that you have the ability to change the default value to something if there is any reason for this.
StringUtils documentation
source share