Buggy code:
public class PGPPassphraseDialog implements ActionListener { private char [ ] password ; private JDialog dialog ; private boolean bool = false ; private JPasswordField passwordField ; private JCheckBox checkbox ; private boolean save ; private JButton okButton ; private JButton cancelButton ; private JButton helpButton ; public PGPPassphraseDialog ( ) { } protected JPanel createButtonPanel ( ) { } public void showDialog ( String userID , String password , boolean save ) { JLabel hostLabel = new JLabel ( MessageFormat . format ( MailResourceLoader . getString ( "dialog" , "password" , "enter_passphrase" ) , new Object [ ] { userID } ) ) ; passwordField = new JPasswordField ( password , 40 ) ; checkbox = new JCheckBox ( MailResourceLoader . getString ( "dialog" , "password" , "save_passphrase" ) ) ; checkbox . setSelected ( save ) ; dialog = new JDialog ( FrameManager . getInstance ( ) . getActiveFrame ( ) , true ) ; dialog . setTitle ( MailResourceLoader . getString ( "dialog" , "password" , "dialog_title_passphrase" ) ) ; JPanel centerPanel = new JPanel ( ) ; centerPanel . setBorder ( BorderFactory . createEmptyBorder ( 5 , 5 , 5 , 5 ) ) ; dialog . getContentPane ( ) . add ( centerPanel , BorderLayout . CENTER ) ; GridBagLayout mainLayout = new GridBagLayout ( ) ; centerPanel . setLayout ( mainLayout ) ; GridBagConstraints mainConstraints = new GridBagConstraints ( ) ; <START_BUG> JLabel iconLabel = new JLabel ( ImageLoader . getImageIcon ( "pgp-signature-nokey.png" ) ) ; <END_BUG> mainConstraints . anchor = GridBagConstraints . NORTHWEST ; mainConstraints . weightx = 1.0 ; mainConstraints . gridwidth = GridBagConstraints . RELATIVE ; mainConstraints . fill = GridBagConstraints . HORIZONTAL ; mainLayout . setConstraints ( iconLabel , mainConstraints ) ; centerPanel . add ( iconLabel ) ; mainConstraints . gridwidth = GridBagConstraints . REMAINDER ; mainConstraints . anchor = GridBagConstraints . WEST ; mainConstraints . insets = new Insets ( 0 , 5 , 0 , 0 ) ; mainLayout . setConstraints ( hostLabel , mainConstraints ) ; centerPanel . add ( hostLabel ) ; mainConstraints . insets = new Insets ( 5 , 5 , 0 , 0 ) ; mainLayout . setConstraints ( passwordField , mainConstraints ) ; centerPanel . add ( passwordField ) ; mainConstraints . insets = new Insets ( 5 , 5 , 0 , 0 ) ; mainLayout . setConstraints ( checkbox , mainConstraints ) ; centerPanel . add ( checkbox ) ; JPanel bottomPanel = new JPanel ( ) ; bottomPanel . setLayout ( new BorderLayout ( ) ) ; JPanel buttonPanel = createButtonPanel ( ) ; bottomPanel . add ( buttonPanel , BorderLayout . CENTER ) ; dialog . getContentPane ( ) . add ( bottomPanel , BorderLayout . SOUTH ) ; dialog . getRootPane ( ) . setDefaultButton ( okButton ) ; dialog . getRootPane ( ) . registerKeyboardAction ( this , "CANCEL" , KeyStroke . getKeyStroke ( KeyEvent . VK_ESCAPE , 0 ) , JComponent . WHEN_IN_FOCUSED_WINDOW ) ; dialog . pack ( ) ; dialog . setLocationRelativeTo ( null ) ; dialog . setVisible ( true ) ; dialog . requestFocus ( ) ; passwordField . requestFocus ( ) ; } public char [ ] getPassword ( ) { } public boolean success ( ) { } public boolean getSave ( ) { } public void actionPerformed ( ActionEvent e ) { } }

Fix:
JLabel iconLabel = new JLabel ( ImageLoader . getMiscIcon ( "signature-nokey.png" ) ) ;