Buggy code:
public class ExceptionDialog implements ActionListener { public static final String CMD_CLOSE = "CLOSE" ; public static final String CMD_REPORT_BUG = "REPORT_BUG" ; private static final String RESOURCE_BUNDLE_PATH = "org.columba.core.i18n.dialog" ; private JDialog dialog ; private boolean bool = false ; private JTextField textField ; private String stackTrace ; public ExceptionDialog ( ) { } <START_BUG> public void showDialog ( final Exception ex ) { <END_BUG> JLabel topLabel = new JLabel ( GlobalResourceLoader . getString ( ExceptionDialog . RESOURCE_BUNDLE_PATH , "exception" , "hint" ) , ImageLoader . getImageIcon ( "stock_dialog_error_48.png" ) , SwingConstants . LEFT ) ; JLabel label = new JLabel ( GlobalResourceLoader . getString ( ExceptionDialog . RESOURCE_BUNDLE_PATH , "exception" , "message" ) ) ; JTextArea textArea = new JTextArea ( ex . getMessage ( ) , 3 , 50 ) ; textArea . setLineWrap ( true ) ; textArea . setWrapStyleWord ( true ) ; textArea . setEditable ( false ) ; JScrollPane scrollPane = new JScrollPane ( textArea ) ; JLabel label2 = new JLabel ( GlobalResourceLoader . getString ( ExceptionDialog . RESOURCE_BUNDLE_PATH , "exception" , "stack_trace" ) ) ; JTextArea textArea2 = new JTextArea ( 10 , 50 ) ; StringWriter stringWriter = new StringWriter ( ) ; ex . printStackTrace ( new PrintWriter ( stringWriter ) ) ; stackTrace = stringWriter . toString ( ) ; textArea2 . append ( stringWriter . toString ( ) ) ; textArea2 . setEditable ( false ) ; JScrollPane scrollPane2 = new JScrollPane ( textArea2 ) ; ButtonWithMnemonic closeButton = new ButtonWithMnemonic ( GlobalResourceLoader . getString ( "global" , "global" , "close" ) ) ; closeButton . setActionCommand ( ExceptionDialog . CMD_CLOSE ) ; closeButton . addActionListener ( this ) ; ButtonWithMnemonic reportBugButton = new ButtonWithMnemonic ( GlobalResourceLoader . getString ( ExceptionDialog . RESOURCE_BUNDLE_PATH , "exception" , "report_bug" ) ) ; reportBugButton . setActionCommand ( ExceptionDialog . CMD_REPORT_BUG ) ; reportBugButton . addActionListener ( this ) ; GridBagLayout layout = new GridBagLayout ( ) ; GridBagConstraints c = new GridBagConstraints ( ) ; dialog = DialogStore . getDialog ( GlobalResourceLoader . getString ( ExceptionDialog . RESOURCE_BUNDLE_PATH , "exception" , "title" ) ) ; dialog . getContentPane ( ) . setLayout ( layout ) ; dialog . getRootPane ( ) . setDefaultButton ( closeButton ) ; c . gridx = 0 ; c . gridy = 0 ; c . gridwidth = 1 ; c . weightx = 1 ; c . insets = new Insets ( 10 , 10 , 0 , 10 ) ; c . anchor = GridBagConstraints . WEST ; layout . setConstraints ( topLabel , c ) ; c . gridx = 0 ; c . gridy = 1 ; c . gridwidth = 1 ; c . weightx = 1 ; c . insets = new Insets ( 10 , 10 , 0 , 10 ) ; c . anchor = GridBagConstraints . WEST ; layout . setConstraints ( label , c ) ; c . gridx = 0 ; c . gridy = 2 ; c . gridwidth = 1 ; c . weightx = 1 ; c . insets = new Insets ( 0 , 10 , 10 , 10 ) ; c . anchor = GridBagConstraints . WEST ; layout . setConstraints ( scrollPane , c ) ; c . gridx = 0 ; c . gridy = 3 ; c . gridwidth = 1 ; c . weightx = 1 ; c . insets = new Insets ( 10 , 10 , 0 , 10 ) ; c . anchor = GridBagConstraints . WEST ; layout . setConstraints ( label2 , c ) ; c . gridx = 0 ; c . gridy = 4 ; c . weightx = 1.0 ; c . gridwidth = 1 ; c . insets = new Insets ( 0 , 10 , 10 , 10 ) ; c . anchor = GridBagConstraints . WEST ; layout . setConstraints ( scrollPane2 , c ) ; JPanel panel = new JPanel ( ) ; panel . add ( closeButton ) ; panel . add ( reportBugButton ) ; c . gridx = 0 ; c . gridy = 5 ; c . weightx = 1.0 ; c . gridwidth = 1 ; c . insets = new Insets ( 10 , 10 , 10 , 5 ) ; c . anchor = GridBagConstraints . SOUTHEAST ; layout . setConstraints ( panel , c ) ; dialog . getContentPane ( ) . add ( label ) ; dialog . getContentPane ( ) . add ( scrollPane ) ; dialog . getContentPane ( ) . add ( label2 ) ; dialog . getContentPane ( ) . add ( scrollPane2 ) ; dialog . getContentPane ( ) . add ( topLabel ) ; dialog . getContentPane ( ) . add ( panel ) ; dialog . pack ( ) ; dialog . setLocationRelativeTo ( null ) ; dialog . show ( ) ; } public boolean success ( ) { } public void actionPerformed ( ActionEvent e ) { } }

Fix:
public void showDialog ( final Throwable ex ) {