public static String safeGetSystemProperty(String key) {
        if (key == null)
            throw new IllegalArgumentException("null input");

        String result = null;
        try {
            result = System.getProperty(key);
        } catch (java.lang.SecurityException sm) {
            ; // ignore
        }
        return result;
    }
An internal utility class.

@author Alexander Dorokhine
@author Ceki G&uuml;lc&uuml;
slf4j-api/src/main/java/org/slf4j/helpers/Util.java