Here you can find the source of null2Empty(Object obj)
public static Object null2Empty(Object obj)
//package com.java2s; public class Main { public static Object null2Empty(Object obj) { if (obj == null) { return ""; }//w ww.j a va2s . c o m return obj; } }