Bug 169778 [ErrorHandling] NPE in org.eclipse.ui.internal.ide.StatusUtil [PatchAttached]
Build ID: I20061214-1445
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/StatusUtil.java
}
            }
        } else {
			result.add(aStatus);
		}
        return result;
    }
    /**
     * This method must not be called outside the workbench.
     *
     * Utility method for creating status.
     */
    protected static IStatus newStatus(IStatus[] stati, String message,
            Throwable exception) {
        if (message == null || message.trim().length() == 0) {
            throw new IllegalArgumentException();
        }
        return new MultiStatus(IDEWorkbenchPlugin.IDE_WORKBENCH, IStatus.ERROR,
                stati, message, exception);
    }
    /**
     * This method must not be called outside the workbench.
     *
     * Utility method for creating status.
     */
    public static IStatus newStatus(int severity, String message,
            Throwable exception) {
        String statusMessage = message;
        if (message == null || message.trim().length() == 0) {
            if (exception.getMessage() == null) {