core/src/main/java/org/pentaho/di/core/Const.java
public static String nullToEmpty( String source ) {
    if ( source == null ) {
      return "";
    }
    return source;
  }
/**
   * Return empty string "" in case the given parameter is null, otherwise return the same value.
   *
   * @param source
   *          The source value to check for null.
   * @return empty string if source is null, otherwise simply return the source value.
   */
Return empty string "" in case the given parameter is null, otherwise return the same value.
@param source
The source value to check for null.
@return empty string if source is null, otherwise simply return the source value.
Return empty string " " in case the given parameter is null otherwise return the same value . @param source The source value to check for null . @return empty string if source is null otherwise simply return the source value .
public static String nullToEmpty( String source ) {
    if ( source == null ) {
      return "";
    }
    return source;
  }
public static String nullToEmpty ( String source ) { if ( source == null ) { return "" ; } return source ; }
Return empty string "" in case the given parameter is null, otherwise return the same value.
Return empty string " " in case the given parameter is null otherwise return the same value .