Program: 46645
Project: 46645
Buggy source:
/** 
 * This method initializes jButton_MAIN_SPAWN_OBJECT
 * @return javax.swing.JButton
 */
private JButton getJButton_MAIN_SPAWN_OBJECT(){
  if (jButton_MAIN_SPAWN_OBJECT == null) {
    jButton_MAIN_SPAWN_OBJECT=new JButton();
    jButton_MAIN_SPAWN_OBJECT.setBounds(new Rectangle(10,165,530,30));
    jButton_MAIN_SPAWN_OBJECT.setText("String_Node_Str");
    jButton_MAIN_SPAWN_OBJECT.addActionListener(new java.awt.event.ActionListener(){
      public void actionPerformed(      java.awt.event.ActionEvent e){
        Location location=null;
        String object=null;
        if (jComboBox_MAIN_SPAWN_OBJECT.getSelectedIndex() != -1) {
          object=jComboBox_MAIN_SPAWN_OBJECT.getSelectedItem().toString().toLowerCase();
        }
        if (jComboBox_MAIN_SPAWN_LOCATION_OBJECT.getSelectedItem() != null) {
          if (jComboBox_MAIN_SPAWN_LOCATION_OBJECT.getSelectedItem() instanceof Player) {
            Player p=(Player)jComboBox_MAIN_SPAWN_LOCATION_OBJECT.getSelectedItem();
            location=p.getTargetBlock(null,10).getLocation();
          }
 else {
            String text=jComboBox_MAIN_SPAWN_LOCATION_OBJECT.getSelectedItem().toString();
            if (text.trim().contains("String_Node_Str")) {
              String[] token=text.split("String_Node_Str");
              if (isNumeric(token[0]) && isNumeric(token[1]) && isNumeric(token[2])) {
                int x=Integer.parseInt(token[0].trim());
                int y=Integer.parseInt(token[1].trim());
                int z=Integer.parseInt(token[2].trim());
                location=new Location(SATools.world,x,y,z);
              }
 else {
                SATools.log.severe("String_Node_Str");
              }
            }
          }
        }
 else {
          SATools.log.severe("String_Node_Str");
        }
        if (location != null && object != null)         SATools.spawnObject(location,object);
      }
    }
);
  }
  return jButton_MAIN_SPAWN_OBJECT;
}

Fixed version (ground truth):
/** 
 * This method initializes jButton_MAIN_SPAWN_OBJECT
 * @return javax.swing.JButton
 */
private JButton getJButton_MAIN_SPAWN_OBJECT(){
  if (jButton_MAIN_SPAWN_OBJECT == null) {
    jButton_MAIN_SPAWN_OBJECT=new JButton();
    jButton_MAIN_SPAWN_OBJECT.setBounds(new Rectangle(10,165,530,30));
    jButton_MAIN_SPAWN_OBJECT.setText("String_Node_Str");
    jButton_MAIN_SPAWN_OBJECT.addActionListener(new java.awt.event.ActionListener(){
      public void actionPerformed(      java.awt.event.ActionEvent e){
        Location location=null;
        String object=null;
        if (jComboBox_MAIN_SPAWN_OBJECT.getSelectedIndex() != -1) {
          object=jComboBox_MAIN_SPAWN_OBJECT.getSelectedItem().toString().toLowerCase();
        }
        if (jComboBox_MAIN_SPAWN_LOCATION_OBJECT.getSelectedItem() != null) {
          if (jComboBox_MAIN_SPAWN_LOCATION_OBJECT.getSelectedItem() instanceof Player) {
            Player p=(Player)jComboBox_MAIN_SPAWN_LOCATION_OBJECT.getSelectedItem();
            Location loc=p.getTargetBlock(null,30).getLocation();
            location=new Location(SATools.world,loc.getBlockX(),loc.getBlockY() + 1,loc.getBlockZ());
          }
 else {
            String text=jComboBox_MAIN_SPAWN_LOCATION_OBJECT.getSelectedItem().toString();
            if (text.trim().contains("String_Node_Str")) {
              String[] token=text.split("String_Node_Str");
              if (isNumeric(token[0]) && isNumeric(token[1]) && isNumeric(token[2])) {
                int x=Integer.parseInt(token[0].trim());
                int y=Integer.parseInt(token[1].trim());
                int z=Integer.parseInt(token[2].trim());
                location=new Location(SATools.world,x,y,z);
              }
 else {
                SATools.log.severe("String_Node_Str");
              }
            }
          }
        }
 else {
          SATools.log.severe("String_Node_Str");
        }
        if (location != null && object != null)         SATools.spawnObject(location,object);
      }
    }
);
  }
  return jButton_MAIN_SPAWN_OBJECT;
}