public static int getNullableStringLength(String value) {
    return value == null ? 0 : value.length();
  }
Returns the length of a nullable string

@param value The string whose length is needed
@return The length of the string. 0 if null.
ambry-utils/src/main/java/com/github/ambry/utils/Utils.java