public static int getLength(final String string, final int nullValue) {
        if (string == null) {
            return nullValue;
        }
        return string.length();
    }
@deprecated Since 3.1.0. Use {@link Objects#toString(Object, String)}
commons/src/main/java/com/navercorp/pinpoint/common/util/StringUtils.java