Buggy code:
public void enableDefaultSupportArea ( boolean enable ) { } private StatusAdapter getStatusAdapterFromEvent ( SelectionChangedEvent event ) { } private boolean providesSupport ( ) { } public void selectionChanged ( SelectionChangedEvent event ) { } } private static final String PREF_SKIP_GOTO_ACTION_PROMPT = "pref_skip_goto_action_prompt" ; private static final int GOTO_ACTION_ID = ( IDialogConstants . CLIENT_ID ) + 1 ; private static boolean shouldDisplay ( StatusAdapter statusAdapter , int mask ) { } private Collection errors = Collections . synchronizedSet ( new HashSet ( ) ) ; private HashMap modals = new HashMap ( ) ; private WorkbenchStatusDialogManager . InternalDialog dialog ; private Composite dialogArea ; private Composite listArea ; private Composite singleStatusDisplayArea ; private Label singleStatusLabel ; private TableViewer statusListViewer ; private ITableLabelProvider statusListLabelProvider = new ITableLabelProvider ( ) { ResourceManager manager = new org . eclipse . jface . resource . LocalResourceManager ( JFaceResources . getResources ( ) ) ; public void addListener ( ILabelProviderListener listener ) { } public void dispose ( ) { } public Image getColumnImage ( Object element , int columnIndex ) { } public String getColumnText ( Object element , int columnIndex ) { } private Image getIcon ( Job job ) { } public boolean isLabelProperty ( Object element , String property ) { } public void removeListener ( ILabelProviderListener listener ) { } } ; private WorkbenchStatusDialogManager . DetailsAreaManager detailsManager = new WorkbenchStatusDialogManager . DetailsAreaManager ( ) ; private DisposeListener disposeListener = new WorkbenchStatusDialogManager . StatusDialogDisposeListener ( ) ; private String title ; private Clipboard clipboard ; private int displayMask = 65535 ; private StatusAdapter statusAdapter ; private WorkbenchStatusDialogManager . SupportTray supportTray = new WorkbenchStatusDialogManager . SupportTray ( ) ; private ToolBar toolBar ; private ToolItem launchTrayButton ; private boolean modalitySwitch = false ; private Rectangle shellBounds ; private boolean detailsOpened = false ; private boolean trayOpened = false ; private AbstractStatusAreaProvider userSupportProvider ; private Label titleImageLabel ; private Label mainMessageLabel ; private Composite titleArea ; public WorkbenchStatusDialogManager ( int displayMask , String dialogTitle ) { } public WorkbenchStatusDialogManager ( Shell parentShell , int displayMask , String dialogTitle ) { } public WorkbenchStatusDialogManager ( String dialogTitle ) { } public WorkbenchStatusDialogManager ( Shell parentShell , String dialogTitle ) { } public void addStatusAdapter ( final StatusAdapter statusAdapter , final boolean modal ) { } private boolean close ( ) { } private void closeTray ( ) throws IllegalStateException { } private Control createButtonBar ( Composite parent ) { } private void createButtonsForButtonBar ( Composite parent ) { } private Control createDialogArea ( Composite parent ) { } private void createListArea ( Composite parent ) { } private Composite createSingleStatusDisplayArea ( Composite parent ) { } private ToolBar createSupportToolbar ( Composite parent ) { } private ToolItem createShowSupportToolItem ( ToolBar parent ) { } private void createTitleArea ( Composite parent ) { } public void enableDefaultSupportArea ( boolean enable ) { } private void fillListArea ( Composite parent ) { } private Image getErrorImage ( ) { } private IAction getGotoAction ( ) { } private Image getImage ( ) { } private Image getInfoImage ( ) { } private String getMainMessage ( StatusAdapter statusAdapter ) { } private Shell getParentShell ( ) { } private String getPrimaryMessage ( StatusAdapter statusAdapter ) { } private String getSecondaryMessage ( StatusAdapter statusAdapter ) { String primary = getPrimaryMessage ( statusAdapter ) ; IStatus status = statusAdapter . getStatus ( ) ; if ( ( ( ( status . getMessage ( ) ) != null ) && ( ( status . getMessage ( ) . trim ( ) . length ( ) ) > 0 ) ) && ( ! ( primary . equals ( status . getMessage ( ) ) ) ) ) { return status . getMessage ( ) ; } if ( ( ( status . getChildren ( ) . length ) > 0 ) && ( ! ( primary . equals ( status . getMessage ( ) ) ) ) ) { return WorkbenchMessages . WorkbenchStatusDialog_StatusWithChildren ; } Throwable t = status . getException ( ) ; if ( t != null ) { <START_BUG> if ( ( ( ( t . getMessage ( ) ) != null ) && ( ( t . getMessage ( ) . trim ( ) . length ( ) ) > 0 ) ) && ( ! ( primary . equals ( status . getMessage ( ) ) ) ) ) { <END_BUG> return t . getMessage ( ) ; } return t . getClass ( ) . getName ( ) ; } return WorkbenchMessages . WorkbenchStatusDialog_SeeDetails ; } private Shell getShell ( ) { } private StatusAdapter getSingleSelection ( ) { } public Collection getStatusAdapters ( ) { } private Image getSWTImage ( final int imageID ) { } private ViewerComparator getViewerComparator ( ) { } private Image getWarningImage ( ) { } private void handleSelectionChange ( ) { } private void initContentProvider ( ) { } private void initializeBounds ( ) { } private void initLabelProvider ( ) { } private boolean isPromptToClose ( ) { } private void openStatusDialog ( final boolean modal , final StatusAdapter statusAdapter ) { } private void openTray ( DialogTray tray ) throws IllegalStateException , UnsupportedOperationException { } private void refresh ( ) { } private void refreshDialogSize ( ) { } private void refreshSingleStatusArea ( ) { } private void refreshStatusListArea ( ) { } public void setDetailsAreaProvider ( AbstractStatusAreaProvider provider ) { } private void setSelectedStatusAdapter ( StatusAdapter statusAdapter ) { } public void setStatusListLabelProvider ( ITableLabelProvider labelProvider ) { } public void setSupportAreaProvider ( AbstractStatusAreaProvider provider ) { } private boolean shouldBeModal ( ) { } private boolean shouldPrompt ( final StatusAdapter statusAdapter ) { } private void showDetailsArea ( ) { } private boolean toggleDetailsArea ( ) { } private void updateEnablements ( ) { } private void hideButton ( Button button , boolean hide ) { } private void updateListArea ( ) { } private void updateTitleArea ( ) { } }

Fix:
if ( ( ( ( t . getMessage ( ) ) != null ) && ( ( t . getMessage ( ) . trim ( ) . length ( ) ) > 0 ) ) && ( ! ( primary . equals ( t . getMessage ( ) ) ) ) ) {