Program: 95863
Project: 95863
Buggy source:
/** 
 * create the necessary environment
 * @param autAgent The AUT Agent monitored by the created object.
 */
public DesktopIntegration(final AutAgent autAgent){
  m_isSystraySupported=SystemTray.isSupported();
  if (m_isSystraySupported) {
    SystemTray tray=SystemTray.getSystemTray();
    URL imageURL;
    if (EnvironmentUtils.isMacOS()) {
      imageURL=this.getClass().getClassLoader().getResource("String_Node_Str");
    }
 else {
      imageURL=this.getClass().getClassLoader().getResource("String_Node_Str");
    }
    Image image=Toolkit.getDefaultToolkit().getImage(imageURL);
    ActionListener exitListener=new ActionListener(){
      public void actionPerformed(      ActionEvent e){
        System.exit(0);
      }
    }
;
    PopupMenu popup=new PopupMenu();
    final CheckboxMenuItem strictModeItem=new CheckboxMenuItem("String_Node_Str");
    autAgent.addPropertyChangeListener(AutAgent.PROP_KILL_DUPLICATE_AUTS,new PropertyChangeListener(){
      @SuppressWarnings("String_Node_Str") public void propertyChange(      PropertyChangeEvent evt){
        Object newValue=evt.getNewValue();
        if (newValue instanceof Boolean) {
          boolean isKillDuplicateAuts=((Boolean)newValue).booleanValue();
          strictModeItem.setState(isKillDuplicateAuts);
        }
 else {
          LOG.error("String_Node_Str" + Boolean.class.getName());
        }
      }
    }
);
    boolean isKillDuplicateAuts=autAgent.isKillDuplicateAuts();
    strictModeItem.setState(isKillDuplicateAuts);
    strictModeItem.addItemListener(new ItemListener(){
      public void itemStateChanged(      ItemEvent e){
        autAgent.setKillDuplicateAuts(e.getStateChange() == ItemEvent.SELECTED);
      }
    }
);
    MenuItem defaultItem=new MenuItem("String_Node_Str");
    defaultItem.addActionListener(exitListener);
    popup.add(strictModeItem);
    popup.addSeparator();
    popup.add(defaultItem);
    m_trayIcon=new TrayIcon(image,"String_Node_Str",popup);
    m_trayIcon.setImageAutoSize(true);
    try {
      tray.add(m_trayIcon);
    }
 catch (    AWTException e) {
      m_isSystraySupported=false;
    }
  }
}

Fixed version (ground truth):
/** 
 * create the necessary environment
 * @param autAgent The AUT Agent monitored by the created object.
 */
public DesktopIntegration(final AutAgent autAgent){
  m_isSystraySupported=SystemTray.isSupported();
  if (m_isSystraySupported) {
    SystemTray tray=SystemTray.getSystemTray();
    URL imageURL;
    final ClassLoader classLoader=this.getClass().getClassLoader();
    if (EnvironmentUtils.isMacOS()) {
      imageURL=classLoader.getResource("String_Node_Str");
    }
 else {
      imageURL=classLoader.getResource("String_Node_Str");
    }
    Image image=Toolkit.getDefaultToolkit().getImage(imageURL);
    ActionListener exitListener=new ActionListener(){
      public void actionPerformed(      ActionEvent e){
        System.exit(0);
      }
    }
;
    PopupMenu popup=new PopupMenu();
    final CheckboxMenuItem strictModeItem=new CheckboxMenuItem("String_Node_Str");
    autAgent.addPropertyChangeListener(AutAgent.PROP_KILL_DUPLICATE_AUTS,new PropertyChangeListener(){
      @SuppressWarnings("String_Node_Str") public void propertyChange(      PropertyChangeEvent evt){
        Object newValue=evt.getNewValue();
        if (newValue instanceof Boolean) {
          boolean isKillDuplicateAuts=((Boolean)newValue).booleanValue();
          strictModeItem.setState(isKillDuplicateAuts);
        }
 else {
          LOG.error("String_Node_Str" + Boolean.class.getName());
        }
      }
    }
);
    boolean isKillDuplicateAuts=autAgent.isKillDuplicateAuts();
    strictModeItem.setState(isKillDuplicateAuts);
    strictModeItem.addItemListener(new ItemListener(){
      public void itemStateChanged(      ItemEvent e){
        autAgent.setKillDuplicateAuts(e.getStateChange() == ItemEvent.SELECTED);
      }
    }
);
    MenuItem defaultItem=new MenuItem("String_Node_Str");
    defaultItem.addActionListener(exitListener);
    popup.add(strictModeItem);
    popup.addSeparator();
    popup.add(defaultItem);
    m_trayIcon=new TrayIcon(image,"String_Node_Str",popup);
    m_trayIcon.setImageAutoSize(true);
    try {
      tray.add(m_trayIcon);
    }
 catch (    AWTException e) {
      m_isSystraySupported=false;
    }
  }
}