Bug 162140 [Progress] Be more resilient to null args in StatusLine's progress monitor
bundles/org.eclipse.jface/src/org/eclipse/jface/action/StatusLine.java
if (fTaskName.length() == 0) {
			text = name;
		} else {
			text = JFaceResources.format(
                    "Set_SubTask", new Object[] { fTaskName, name });
		}
        setMessage(text);
    }
    /**
     * Trims the message to be displayable in the status line.
     * This just pulls out the first line of the message.
     * Allows null.
     */
    String trim(String message) {
        if (message == null) {
			return null;
		}
        message = Util.replaceAll(message, "&", "&&");  
        int cr = message.indexOf('\r');
        int lf = message.indexOf('\n');
        if (cr == -1 && lf == -1) {
			return message;
		}
        int len;
        if (cr == -1) {
			len = lf;
		} else if (lf == -1) {
			len = cr;
		} else {
			len = Math.min(cr, lf);