Here you can find the source of convertNullableString(Object object)
public static String convertNullableString(Object object)
//package com.java2s; //License from project: Open Source License public class Main { public static String convertNullableString(Object object) { if (object == null) { return new String(); }/*from www. j av a 2s. c o m*/ return object.toString(); } public static String convertNullableString(Object object, String defaultValue) { if (object == null) { return defaultValue; } return object.toString(); } }