Program: 20373
Project: 20373
Buggy source:
public void writeValueEdit(Object value){
  reportlock=true;
  Object[] myprod=(Object[])value;
  m_jTitle.setText(Formats.STRING.formatValue(myprod[1]) + "String_Node_Str" + Formats.STRING.formatValue(myprod[3]));
  m_id=myprod[0];
  m_jRef.setText(Formats.STRING.formatValue(myprod[1]));
  m_jCode.setText(Formats.STRING.formatValue(myprod[2]));
  m_jName.setText(Formats.STRING.formatValue(myprod[3]));
  m_jComment.setSelected(((Boolean)myprod[4]).booleanValue());
  m_jScale.setSelected(((Boolean)myprod[5]).booleanValue());
  m_jPriceBuy.setText(Formats.CURRENCY.formatValue(myprod[6]));
  m_jPriceSell.setText(Formats.CURRENCY.formatValue(myprod[7]));
  m_CategoryModel.setSelectedKey(myprod[8]);
  taxcatmodel.setSelectedKey(myprod[9]);
  m_jImage.setImage((BufferedImage)myprod[10]);
  m_jstockcost.setText(Formats.CURRENCY.formatValue(myprod[11]));
  m_jstockvolume.setText(Formats.DOUBLE.formatValue(myprod[12]));
  m_jInCatalog.setSelected(((Boolean)myprod[13]).booleanValue());
  m_jCatalogOrder.setText(Formats.INT.formatValue(myprod[14]));
  txtAttributes.setText(Formats.BYTEA.formatValue(myprod[15]));
  txtAttributes.setCaretPosition(0);
  reportlock=false;
  m_jRef.setEnabled(true);
  m_jCode.setEnabled(true);
  m_jName.setEnabled(true);
  m_jComment.setEnabled(true);
  m_jScale.setEnabled(true);
  m_jCategory.setEnabled(true);
  m_jTax.setEnabled(true);
  m_jPriceBuy.setEnabled(true);
  m_jPriceSell.setEnabled(true);
  m_jPriceSellTax.setEnabled(true);
  m_jmargin.setEnabled(true);
  m_jImage.setEnabled(true);
  m_jstockcost.setEnabled(true);
  m_jstockvolume.setEnabled(true);
  m_jInCatalog.setEnabled(true);
  m_jCatalogOrder.setEnabled(m_jInCatalog.isSelected());
  txtAttributes.setEnabled(true);
  calculateMargin();
  calculatePriceSellTax();
}

Fixed version (ground truth):
public void writeValueEdit(Object value){
  reportlock=true;
  Object[] myprod=(Object[])value;
  m_jTitle.setText(Formats.STRING.formatValue(myprod[1]) + "String_Node_Str" + Formats.STRING.formatValue(myprod[3]));
  m_id=myprod[0];
  m_jRef.setText(Formats.STRING.formatValue(myprod[1]));
  m_jCode.setText(Formats.STRING.formatValue(myprod[2]));
  m_jName.setText(Formats.STRING.formatValue(myprod[3]));
  m_jComment.setSelected(((Boolean)myprod[4]).booleanValue());
  m_jScale.setSelected(((Boolean)myprod[5]).booleanValue());
  m_jPriceBuy.setText(Formats.CURRENCY.formatValue(myprod[6]));
  setPriceSell(myprod[7]);
  m_CategoryModel.setSelectedKey(myprod[8]);
  taxcatmodel.setSelectedKey(myprod[9]);
  m_jImage.setImage((BufferedImage)myprod[10]);
  m_jstockcost.setText(Formats.CURRENCY.formatValue(myprod[11]));
  m_jstockvolume.setText(Formats.DOUBLE.formatValue(myprod[12]));
  m_jInCatalog.setSelected(((Boolean)myprod[13]).booleanValue());
  m_jCatalogOrder.setText(Formats.INT.formatValue(myprod[14]));
  txtAttributes.setText(Formats.BYTEA.formatValue(myprod[15]));
  txtAttributes.setCaretPosition(0);
  reportlock=false;
  m_jRef.setEnabled(true);
  m_jCode.setEnabled(true);
  m_jName.setEnabled(true);
  m_jComment.setEnabled(true);
  m_jScale.setEnabled(true);
  m_jCategory.setEnabled(true);
  m_jTax.setEnabled(true);
  m_jPriceBuy.setEnabled(true);
  m_jPriceSell.setEnabled(true);
  m_jPriceSellTax.setEnabled(true);
  m_jmargin.setEnabled(true);
  m_jImage.setEnabled(true);
  m_jstockcost.setEnabled(true);
  m_jstockvolume.setEnabled(true);
  m_jInCatalog.setEnabled(true);
  m_jCatalogOrder.setEnabled(m_jInCatalog.isSelected());
  txtAttributes.setEnabled(true);
  calculateMargin();
  calculatePriceSellTax();
}