public static String unnull(Object prop){
  if (prop == null) {
    return "";
  }
  return prop.toString();
}

public static String unnull ( Object prop ) { if ( prop == null ) { return "" ; } return prop . toString ( ) ; }
it kills properties to have null values set . you can wrap a property value in this in propertyconsumer . getproperties ( ) to not worry about it .
