private static String nullSafe(final String string) {
        return string != null
                ? string
                : "";
    }
Null safe way to escape string and return {@link SafeHtml}
stroom-core-client-widget/src/main/java/stroom/widget/util/client/SafeHtmlUtil.java