nus-yam/ex-repair huggingface dataset:
Program: 62451
Project: 62451
Buggy source:
@Override public void mouseClicked(MouseEvent e){
  if (e.getClickCount() >= 2) {
    int selectedRow=operatorsTable.getSelectedRow();
    operatorsTable.repaint();
    ToolAdapterOperatorDescriptor operatorDesc=((OperatorsTableModel)operatorsTable.getModel()).getObjectAt(selectedRow);
    AbstractAdapterEditor dialog=AbstractAdapterEditor.createEditorDialog(appContext,getJDialog(),operatorDesc,false);
    dialog.show();
    refreshContent();
  }
}

Fixed version (ground truth):
@Override public void mouseClicked(MouseEvent e){
  if (e.getClickCount() >= 2) {
    int selectedRow=operatorsTable.getSelectedRow();
    operatorsTable.repaint();
    ToolAdapterOperatorDescriptor operatorDesc=((OperatorsTableModel)operatorsTable.getModel()).getObjectAt(selectedRow);
    AbstractAdapterEditor dialog=AbstractAdapterEditor.createEditorDialog(appContext,getJDialog(),operatorDesc,OperationType.EDIT);
    dialog.show();
    refreshContent();
  }
}
Program: 62453
Project: 62453
Buggy source:
@Override public void intervalAdded(ListDataEvent e){
  final Product[] propertySourceProducts=binningFormModel.getPropertyValue(BinningFormModel.PROPERTY_KEY_SOURCE_PRODUCTS);
  final Product[] newSourceProducts=sourceProductList.getSourceProducts();
  for (  Product newSourceProduct : newSourceProducts) {
    if ((propertySourceProducts == null || !ArrayUtils.isMemberOf(newSourceProduct,propertySourceProducts)) && newSourceProduct.isMultiSize()) {
      MultiSizeIssue0.maybeResample(newSourceProduct);
    }
  }
  contentsChanged(e);
}

Fixed version (ground truth):
@Override public void intervalAdded(ListDataEvent e){
  final Product[] propertySourceProducts=binningFormModel.getPropertyValue(BinningFormModel.PROPERTY_KEY_SOURCE_PRODUCTS);
  final Product[] newSourceProducts=sourceProductList.getSourceProducts();
  for (  Product newSourceProduct : newSourceProducts) {
    if ((propertySourceProducts == null || !ArrayUtils.isMemberOf(newSourceProduct,propertySourceProducts)) && newSourceProduct.isMultiSize()) {
      _MultiSizeIssue.maybeResample(newSourceProduct);
    }
  }
  contentsChanged(e);
}
Program: 62454
Project: 62454
Buggy source:
private void maybeCheckForMultisize(Product product){
  final Product resampledProduct=MultiSizeIssue0.maybeResample(product);
  if (resampledProduct != null) {
    productListModel.setSelectedItem(resampledProduct);
  }
 else {
    productListModel.setSelectedItem(null);
    for (int i=0; i < getProductCount(); i++) {
      final Object element=productListModel.getElementAt(i);
      if (element != null && element instanceof Product) {
        final Product someProduct=(Product)element;
        if (!someProduct.isMultiSize()) {
          productListModel.setSelectedItem(someProduct);
          break;
        }
      }
    }
  }
}

Fixed version (ground truth):
private void maybeCheckForMultisize(Product product){
  final Product resampledProduct=_MultiSizeIssue.maybeResample(product);
  if (resampledProduct != null) {
    productListModel.setSelectedItem(resampledProduct);
  }
 else {
    productListModel.setSelectedItem(null);
    for (int i=0; i < getProductCount(); i++) {
      final Object element=productListModel.getElementAt(i);
      if (element != null && element instanceof Product) {
        final Product someProduct=(Product)element;
        if (!someProduct.isMultiSize()) {
          productListModel.setSelectedItem(someProduct);
          break;
        }
      }
    }
  }
}
Program: 62455
Project: 62455
Buggy source:
@Override public void intervalAdded(ListDataEvent e){
  final Product[] propertySourceProducts=container.getValue("String_Node_Str");
  final Product[] newSourceProducts=sourceProductList.getSourceProducts();
  for (  Product newSourceProduct : newSourceProducts) {
    if ((propertySourceProducts == null || !ArrayUtils.isMemberOf(newSourceProduct,propertySourceProducts)) && newSourceProduct.isMultiSize()) {
      MultiSizeIssue0.maybeResample(newSourceProduct);
    }
  }
}

Fixed version (ground truth):
@Override public void intervalAdded(ListDataEvent e){
  final Product[] propertySourceProducts=container.getValue("String_Node_Str");
  final Product[] newSourceProducts=sourceProductList.getSourceProducts();
  for (  Product newSourceProduct : newSourceProducts) {
    if ((propertySourceProducts == null || !ArrayUtils.isMemberOf(newSourceProduct,propertySourceProducts)) && newSourceProduct.isMultiSize()) {
      _MultiSizeIssue.maybeResample(newSourceProduct);
    }
  }
}
Program: 62457
Project: 62457
Buggy source:
/** 
 * Invoked when a command action is performed.
 * @param event the command event
 */
@Override public void actionPerformed(ActionEvent event){
  ProductSceneView sceneView=SnapApp.getDefault().getSelectedProductSceneView();
  if (sceneView != null) {
    Product product=sceneView.getProduct();
    if (product.isMultiSize()) {
      final Product resampledProduct=MultiSizeIssue0.maybeResample(product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
 else {
        return;
      }
    }
    exportMaskPixels(product);
  }
}

Fixed version (ground truth):
/** 
 * Invoked when a command action is performed.
 * @param event the command event
 */
@Override public void actionPerformed(ActionEvent event){
  ProductSceneView sceneView=SnapApp.getDefault().getSelectedProductSceneView();
  if (sceneView != null) {
    Product product=sceneView.getProduct();
    if (product.isMultiSize()) {
      final Product resampledProduct=_MultiSizeIssue.maybeResample(product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
 else {
        return;
      }
    }
    exportMaskPixels(product);
  }
}
Program: 62458
Project: 62458
Buggy source:
/** 
 * Invoked when a command action is performed.
 * @param event the command event
 */
@Override public void actionPerformed(ActionEvent event){
  final ProductSceneView sceneView=SnapApp.getDefault().getSelectedProductSceneView();
  if (sceneView != null && sceneView.getProduct().isMultiSize()) {
    MultiSizeIssue0.maybeResample(sceneView.getProduct());
  }
 else {
    exportTransectPixels();
  }
}

Fixed version (ground truth):
/** 
 * Invoked when a command action is performed.
 * @param event the command event
 */
@Override public void actionPerformed(ActionEvent event){
  final ProductSceneView sceneView=SnapApp.getDefault().getSelectedProductSceneView();
  if (sceneView != null && sceneView.getProduct().isMultiSize()) {
    _MultiSizeIssue.maybeResample(sceneView.getProduct());
  }
 else {
    exportTransectPixels();
  }
}
Program: 62459
Project: 62459
Buggy source:
@Override public void actionPerformed(ActionEvent actionEvent){
  Product selectedProduct=lkp.lookup(ProductNode.class).getProduct();
  if (MultiSizeIssue0.isMultiSize(selectedProduct)) {
    final Product resampledProduct=MultiSizeIssue0.maybeResample(selectedProduct);
    if (resampledProduct != null) {
      selectedProduct=resampledProduct;
    }
 else {
      final Band[] bands=selectedProduct.getBands();
      int validBandsCount=0;
      for (      Band band : bands) {
        if (band.getRasterSize().equals(selectedProduct.getSceneRasterSize()) && band.getGeoCoding().equals(selectedProduct.getSceneGeoCoding())) {
          validBandsCount++;
          if (validBandsCount == 2) {
            break;
          }
        }
        if (validBandsCount < 2) {
          Dialogs.showError("String_Node_Str");
          return;
        }
      }
    }
  }
  attachPixelGeoCoding(selectedProduct);
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent actionEvent){
  Product selectedProduct=lkp.lookup(ProductNode.class).getProduct();
  if (_MultiSizeIssue.isMultiSize(selectedProduct)) {
    final Product resampledProduct=_MultiSizeIssue.maybeResample(selectedProduct);
    if (resampledProduct != null) {
      selectedProduct=resampledProduct;
    }
 else {
      final Band[] bands=selectedProduct.getBands();
      int validBandsCount=0;
      for (      Band band : bands) {
        if (band.getRasterSize().equals(selectedProduct.getSceneRasterSize()) && band.getGeoCoding().equals(selectedProduct.getSceneGeoCoding())) {
          validBandsCount++;
          if (validBandsCount == 2) {
            break;
          }
        }
        if (validBandsCount < 2) {
          Dialogs.showError("String_Node_Str");
          return;
        }
      }
    }
  }
  attachPixelGeoCoding(selectedProduct);
}
Program: 62460
Project: 62460
Buggy source:
private void copyPixelInfoStringToClipboard(){
  final ProductSceneView view=getCurrentSceneView();
  if (view != null) {
    Product product=view.getProduct();
    if (product != null) {
      if (product.isMultiSize()) {
        final Product resampledProduct=MultiSizeIssue0.maybeResample(product);
        if (resampledProduct != null) {
          product=resampledProduct;
        }
 else {
          return;
        }
      }
      SystemUtils.copyToClipboard(product.createPixelInfoString(view.getCurrentPixelX(),view.getCurrentPixelY()));
    }
  }
}

Fixed version (ground truth):
private void copyPixelInfoStringToClipboard(){
  final ProductSceneView view=getCurrentSceneView();
  if (view != null) {
    Product product=view.getProduct();
    if (product != null) {
      if (product.isMultiSize()) {
        final Product resampledProduct=_MultiSizeIssue.maybeResample(product);
        if (resampledProduct != null) {
          product=resampledProduct;
        }
 else {
          return;
        }
      }
      SystemUtils.copyToClipboard(product.createPixelInfoString(view.getCurrentPixelX(),view.getCurrentPixelY()));
    }
  }
}
Program: 62461
Project: 62461
Buggy source:
@Override public void actionPerformed(final ActionEvent event){
  if (product != null) {
    if (product.isMultiSize()) {
      final Product resampledProduct=MultiSizeIssue0.maybeResample(this.product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
    }
    openProductSceneViewHSV(product,HELP_ID);
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(final ActionEvent event){
  if (product != null) {
    if (product.isMultiSize()) {
      final Product resampledProduct=_MultiSizeIssue.maybeResample(this.product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
    }
    openProductSceneViewHSV(product,HELP_ID);
  }
}
Program: 62462
Project: 62462
Buggy source:
@Override public void actionPerformed(ActionEvent e){
  if (product != null) {
    if (product.isMultiSize()) {
      final Product resampledProduct=MultiSizeIssue0.maybeResample(this.product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
    }
    openProductSceneViewRGB(product,HELP_ID);
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent e){
  if (product != null) {
    if (product.isMultiSize()) {
      final Product resampledProduct=_MultiSizeIssue.maybeResample(this.product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
    }
    openProductSceneViewRGB(product,HELP_ID);
  }
}
Program: 62463
Project: 62463
Buggy source:
@Override public void actionPerformed(ActionEvent actionEvent){
  final ProductNodeList<Product> products=new ProductNodeList<>();
  Product[] openedProducts=SnapApp.getDefault().getProductManager().getProducts();
  for (  Product prod : openedProducts) {
    products.add(prod);
  }
  Product product=SnapApp.getDefault().getSelectedProduct(EXPLORER);
  if (product == null) {
    product=products.getAt(0);
  }
  if (MultiSizeIssue0.isMultiSize(product)) {
    final Product resampledProduct=MultiSizeIssue0.maybeResample(product);
    if (resampledProduct != null) {
      product=resampledProduct;
      products.add(resampledProduct);
    }
  }
  Collection<? extends RasterDataNode> selectedRasters=Utilities.actionsGlobalContext().lookupAll(RasterDataNode.class);
  String expression=selectedRasters.stream().map(ProductNode::getName).collect(Collectors.joining("String_Node_Str"));
  BandMathsDialog bandMathsDialog=new BandMathsDialog(product,products,expression,HELP_ID);
  bandMathsDialog.show();
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent actionEvent){
  final ProductNodeList<Product> products=new ProductNodeList<>();
  Product[] openedProducts=SnapApp.getDefault().getProductManager().getProducts();
  for (  Product prod : openedProducts) {
    products.add(prod);
  }
  Product product=SnapApp.getDefault().getSelectedProduct(EXPLORER);
  if (product == null) {
    product=products.getAt(0);
  }
  if (_MultiSizeIssue.isMultiSize(product)) {
    final Product resampledProduct=_MultiSizeIssue.maybeResample(product);
    if (resampledProduct != null) {
      product=resampledProduct;
      products.add(resampledProduct);
    }
  }
  Collection<? extends RasterDataNode> selectedRasters=Utilities.actionsGlobalContext().lookupAll(RasterDataNode.class);
  String expression=selectedRasters.stream().map(ProductNode::getName).collect(Collectors.joining("String_Node_Str"));
  BandMathsDialog bandMathsDialog=new BandMathsDialog(product,products,expression,HELP_ID);
  bandMathsDialog.show();
}
Program: 62464
Project: 62464
Buggy source:
@Override public void actionPerformed(ActionEvent actionEvent){
  final Product product=virtualBand.getProduct();
  if (product != null && product.isMultiSize()) {
    virtualBand=null;
    final Product resampledProduct=MultiSizeIssue0.maybeResample(product);
    if (resampledProduct != null) {
      final Band band=resampledProduct.getBand(virtualBand.getName());
      if (band instanceof VirtualBand) {
        virtualBand=(VirtualBand)band;
      }
    }
  }
  if (virtualBand != null) {
    PropagateUncertaintyDialog dialog=new PropagateUncertaintyDialog(virtualBand);
    dialog.show();
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent actionEvent){
  final Product product=virtualBand.getProduct();
  if (product != null && product.isMultiSize()) {
    virtualBand=null;
    final Product resampledProduct=_MultiSizeIssue.maybeResample(product);
    if (resampledProduct != null) {
      final Band band=resampledProduct.getBand(virtualBand.getName());
      if (band instanceof VirtualBand) {
        virtualBand=(VirtualBand)band;
      }
    }
  }
  if (virtualBand != null) {
    PropagateUncertaintyDialog dialog=new PropagateUncertaintyDialog(virtualBand);
    dialog.show();
  }
}
Program: 62465
Project: 62465
Buggy source:
private static void copyMaskPixel(Mask[] selectedMasks,Product sourceProduct,Product[] maskPixelTargetProducts){
  if (MultiSizeIssue0.isMultiSize(sourceProduct)) {
    final Product resampledProduct=MultiSizeIssue0.maybeResample(sourceProduct);
    if (resampledProduct != null) {
      sourceProduct=resampledProduct;
      for (int i=0; i < selectedMasks.length; i++) {
        Mask selectedMask=selectedMasks[i];
        selectedMasks[i]=sourceProduct.getMaskGroup().get(selectedMask.getName());
      }
    }
 else {
      return;
    }
  }
  for (  Product targetProduct : maskPixelTargetProducts) {
    if (sourceProduct.isCompatibleProduct(targetProduct,1.0e-3f)) {
      copyBandData(selectedMasks,targetProduct);
    }
 else {
      reprojectBandData(selectedMasks,sourceProduct,targetProduct);
    }
  }
}

Fixed version (ground truth):
private static void copyMaskPixel(Mask[] selectedMasks,Product sourceProduct,Product[] maskPixelTargetProducts){
  if (_MultiSizeIssue.isMultiSize(sourceProduct)) {
    final Product resampledProduct=_MultiSizeIssue.maybeResample(sourceProduct);
    if (resampledProduct != null) {
      sourceProduct=resampledProduct;
      for (int i=0; i < selectedMasks.length; i++) {
        Mask selectedMask=selectedMasks[i];
        selectedMasks[i]=sourceProduct.getMaskGroup().get(selectedMask.getName());
      }
    }
 else {
      return;
    }
  }
  for (  Product targetProduct : maskPixelTargetProducts) {
    if (sourceProduct.isCompatibleProduct(targetProduct,1.0e-3f)) {
      copyBandData(selectedMasks,targetProduct);
    }
 else {
      reprojectBandData(selectedMasks,sourceProduct,targetProduct);
    }
  }
}
Program: 62466
Project: 62466
Buggy source:
private void checkForMultiSize(Product product){
  if (product != null && product.isMultiSize()) {
    final Product resampledProduct=MultiSizeIssue0.maybeResample(product);
    if (resampledProduct != null) {
      selectionChanged(resampledProduct,null,null);
    }
  }
}

Fixed version (ground truth):
private void checkForMultiSize(Product product){
  if (product != null && product.isMultiSize()) {
    final Product resampledProduct=_MultiSizeIssue.maybeResample(product);
    if (resampledProduct != null) {
      selectionChanged(resampledProduct,null,null);
    }
  }
}
Program: 62467
Project: 62467
Buggy source:
public static void createSubset(Product sourceProduct,Rectangle bounds){
  if (MultiSizeIssue0.isMultiSize(sourceProduct)) {
    final Product resampledProduct=MultiSizeIssue0.maybeResample(sourceProduct);
    if (resampledProduct != null) {
      sourceProduct=resampledProduct;
    }
 else {
      return;
    }
  }
  final String subsetName="String_Node_Str" + CreateSubsetAction.subsetNumber + "String_Node_Str"+ sourceProduct.getName();
  final ProductSubsetDef initSubset=new ProductSubsetDef();
  initSubset.setRegion(bounds);
  initSubset.setNodeNames(sourceProduct.getBandNames());
  initSubset.addNodeNames(sourceProduct.getTiePointGridNames());
  initSubset.setIgnoreMetadata(false);
  final ProductSubsetDialog subsetDialog=new ProductSubsetDialog(SnapApp.getDefault().getMainFrame(),sourceProduct,initSubset);
  if (subsetDialog.show() != ProductSubsetDialog.ID_OK) {
    return;
  }
  final ProductSubsetDef subsetDef=subsetDialog.getProductSubsetDef();
  if (subsetDef == null) {
    Dialogs.showInformation(Bundle.CTL_CreateSubsetFromViewAction_Title(),"String_Node_Str",null);
    return;
  }
  try {
    final Product subset=sourceProduct.createSubset(subsetDef,subsetName,sourceProduct.getDescription());
    SnapApp.getDefault().getProductManager().addProduct(subset);
    CreateSubsetAction.subsetNumber++;
  }
 catch (  Exception e) {
    final String msg="String_Node_Str" + e.getMessage();
    SnapApp.getDefault().handleError(msg,e);
  }
}

Fixed version (ground truth):
public static void createSubset(Product sourceProduct,Rectangle bounds){
  if (_MultiSizeIssue.isMultiSize(sourceProduct)) {
    final Product resampledProduct=_MultiSizeIssue.maybeResample(sourceProduct);
    if (resampledProduct != null) {
      sourceProduct=resampledProduct;
    }
 else {
      return;
    }
  }
  final String subsetName="String_Node_Str" + CreateSubsetAction.subsetNumber + "String_Node_Str"+ sourceProduct.getName();
  final ProductSubsetDef initSubset=new ProductSubsetDef();
  initSubset.setRegion(bounds);
  initSubset.setNodeNames(sourceProduct.getBandNames());
  initSubset.addNodeNames(sourceProduct.getTiePointGridNames());
  initSubset.setIgnoreMetadata(false);
  final ProductSubsetDialog subsetDialog=new ProductSubsetDialog(SnapApp.getDefault().getMainFrame(),sourceProduct,initSubset);
  if (subsetDialog.show() != ProductSubsetDialog.ID_OK) {
    return;
  }
  final ProductSubsetDef subsetDef=subsetDialog.getProductSubsetDef();
  if (subsetDef == null) {
    Dialogs.showInformation(Bundle.CTL_CreateSubsetFromViewAction_Title(),"String_Node_Str",null);
    return;
  }
  try {
    final Product subset=sourceProduct.createSubset(subsetDef,subsetName,sourceProduct.getDescription());
    SnapApp.getDefault().getProductManager().addProduct(subset);
    CreateSubsetAction.subsetNumber++;
  }
 catch (  Exception e) {
    final String msg="String_Node_Str" + e.getMessage();
    SnapApp.getDefault().handleError(msg,e);
  }
}
Program: 62469
Project: 62469
Buggy source:
@Override public void intervalAdded(ListDataEvent e){
  final Product[] propertySourceProducts=binningFormModel.getPropertyValue(BinningFormModel.PROPERTY_KEY_SOURCE_PRODUCTS);
  final Product[] newSourceProducts=sourceProductList.getSourceProducts();
  for (  Product newSourceProduct : newSourceProducts) {
    if ((propertySourceProducts == null || !ArrayUtils.isMemberOf(newSourceProduct,propertySourceProducts)) && newSourceProduct.isMultiSize()) {
      MultisizeIssue.maybeResample(newSourceProduct);
    }
  }
  contentsChanged(e);
}

Fixed version (ground truth):
@Override public void intervalAdded(ListDataEvent e){
  final Product[] propertySourceProducts=binningFormModel.getPropertyValue(BinningFormModel.PROPERTY_KEY_SOURCE_PRODUCTS);
  final Product[] newSourceProducts=sourceProductList.getSourceProducts();
  for (  Product newSourceProduct : newSourceProducts) {
    if ((propertySourceProducts == null || !ArrayUtils.isMemberOf(newSourceProduct,propertySourceProducts)) && newSourceProduct.isMultiSize()) {
      MultiSizeIssue0.maybeResample(newSourceProduct);
    }
  }
  contentsChanged(e);
}
Program: 62470
Project: 62470
Buggy source:
private void maybeCheckForMultisize(Product product){
  final Product resampledProduct=MultisizeIssue.maybeResample(product);
  if (resampledProduct != null) {
    productListModel.setSelectedItem(resampledProduct);
  }
 else {
    productListModel.setSelectedItem(null);
    for (int i=0; i < getProductCount(); i++) {
      final Object element=productListModel.getElementAt(i);
      if (element != null && element instanceof Product) {
        final Product someProduct=(Product)element;
        if (!someProduct.isMultiSize()) {
          productListModel.setSelectedItem(someProduct);
          break;
        }
      }
    }
  }
}

Fixed version (ground truth):
private void maybeCheckForMultisize(Product product){
  final Product resampledProduct=MultiSizeIssue0.maybeResample(product);
  if (resampledProduct != null) {
    productListModel.setSelectedItem(resampledProduct);
  }
 else {
    productListModel.setSelectedItem(null);
    for (int i=0; i < getProductCount(); i++) {
      final Object element=productListModel.getElementAt(i);
      if (element != null && element instanceof Product) {
        final Product someProduct=(Product)element;
        if (!someProduct.isMultiSize()) {
          productListModel.setSelectedItem(someProduct);
          break;
        }
      }
    }
  }
}
Program: 62471
Project: 62471
Buggy source:
@Override public void intervalAdded(ListDataEvent e){
  final Product[] propertySourceProducts=container.getValue("String_Node_Str");
  final Product[] newSourceProducts=sourceProductList.getSourceProducts();
  for (  Product newSourceProduct : newSourceProducts) {
    if ((propertySourceProducts == null || !ArrayUtils.isMemberOf(newSourceProduct,propertySourceProducts)) && newSourceProduct.isMultiSize()) {
      MultisizeIssue.maybeResample(newSourceProduct);
    }
  }
}

Fixed version (ground truth):
@Override public void intervalAdded(ListDataEvent e){
  final Product[] propertySourceProducts=container.getValue("String_Node_Str");
  final Product[] newSourceProducts=sourceProductList.getSourceProducts();
  for (  Product newSourceProduct : newSourceProducts) {
    if ((propertySourceProducts == null || !ArrayUtils.isMemberOf(newSourceProduct,propertySourceProducts)) && newSourceProduct.isMultiSize()) {
      MultiSizeIssue0.maybeResample(newSourceProduct);
    }
  }
}
Program: 62473
Project: 62473
Buggy source:
/** 
 * @return {@code Boolean.TRUE} on success, {@code Boolean.FALSE} on failure, or {@code null} on cancellation.
 */
public Boolean execute(){
  Product product=productRef.get();
  if (product != null) {
    if (product.isMultiSize()) {
      final Product resampledProduct=MultisizeIssue.maybeResample(product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
 else {
        return false;
      }
    }
    return exportProduct(product,(String)getValue(PROPERTY_FORMAT_NAME));
  }
 else {
    return true;
  }
}

Fixed version (ground truth):
/** 
 * @return {@code Boolean.TRUE} on success, {@code Boolean.FALSE} on failure, or {@code null} on cancellation.
 */
public Boolean execute(){
  Product product=productRef.get();
  if (product != null) {
    if (product.isMultiSize()) {
      final Product resampledProduct=MultiSizeIssue0.maybeResample(product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
 else {
        return false;
      }
    }
    return exportProduct(product,(String)getValue(PROPERTY_FORMAT_NAME));
  }
 else {
    return true;
  }
}
Program: 62474
Project: 62474
Buggy source:
/** 
 * Invoked when a command action is performed.
 * @param event the command event
 */
@Override public void actionPerformed(ActionEvent event){
  ProductSceneView sceneView=SnapApp.getDefault().getSelectedProductSceneView();
  if (sceneView != null) {
    Product product=sceneView.getProduct();
    if (product.isMultiSize()) {
      final Product resampledProduct=MultisizeIssue.maybeResample(product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
 else {
        return;
      }
    }
    exportMaskPixels(product);
  }
}

Fixed version (ground truth):
/** 
 * Invoked when a command action is performed.
 * @param event the command event
 */
@Override public void actionPerformed(ActionEvent event){
  ProductSceneView sceneView=SnapApp.getDefault().getSelectedProductSceneView();
  if (sceneView != null) {
    Product product=sceneView.getProduct();
    if (product.isMultiSize()) {
      final Product resampledProduct=MultiSizeIssue0.maybeResample(product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
 else {
        return;
      }
    }
    exportMaskPixels(product);
  }
}
Program: 62475
Project: 62475
Buggy source:
/** 
 * Invoked when a command action is performed.
 * @param event the command event
 */
@Override public void actionPerformed(ActionEvent event){
  final ProductSceneView sceneView=SnapApp.getDefault().getSelectedProductSceneView();
  if (sceneView != null && sceneView.getProduct().isMultiSize()) {
    MultisizeIssue.maybeResample(sceneView.getProduct());
  }
 else {
    exportTransectPixels();
  }
}

Fixed version (ground truth):
/** 
 * Invoked when a command action is performed.
 * @param event the command event
 */
@Override public void actionPerformed(ActionEvent event){
  final ProductSceneView sceneView=SnapApp.getDefault().getSelectedProductSceneView();
  if (sceneView != null && sceneView.getProduct().isMultiSize()) {
    MultiSizeIssue0.maybeResample(sceneView.getProduct());
  }
 else {
    exportTransectPixels();
  }
}
Program: 62476
Project: 62476
Buggy source:
@Override public void actionPerformed(ActionEvent actionEvent){
  Product selectedProduct=lkp.lookup(ProductNode.class).getProduct();
  if (MultisizeIssue.isMultiSize(selectedProduct)) {
    final Product resampledProduct=MultisizeIssue.maybeResample(selectedProduct);
    if (resampledProduct != null) {
      selectedProduct=resampledProduct;
    }
 else {
      final Band[] bands=selectedProduct.getBands();
      int validBandsCount=0;
      for (      Band band : bands) {
        if (band.getRasterSize().equals(selectedProduct.getSceneRasterSize()) && band.getGeoCoding().equals(selectedProduct.getSceneGeoCoding())) {
          validBandsCount++;
          if (validBandsCount == 2) {
            break;
          }
        }
        if (validBandsCount < 2) {
          Dialogs.showError("String_Node_Str");
          return;
        }
      }
    }
  }
  attachPixelGeoCoding(selectedProduct);
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent actionEvent){
  Product selectedProduct=lkp.lookup(ProductNode.class).getProduct();
  if (MultiSizeIssue0.isMultiSize(selectedProduct)) {
    final Product resampledProduct=MultiSizeIssue0.maybeResample(selectedProduct);
    if (resampledProduct != null) {
      selectedProduct=resampledProduct;
    }
 else {
      final Band[] bands=selectedProduct.getBands();
      int validBandsCount=0;
      for (      Band band : bands) {
        if (band.getRasterSize().equals(selectedProduct.getSceneRasterSize()) && band.getGeoCoding().equals(selectedProduct.getSceneGeoCoding())) {
          validBandsCount++;
          if (validBandsCount == 2) {
            break;
          }
        }
        if (validBandsCount < 2) {
          Dialogs.showError("String_Node_Str");
          return;
        }
      }
    }
  }
  attachPixelGeoCoding(selectedProduct);
}
Program: 62477
Project: 62477
Buggy source:
private void copyPixelInfoStringToClipboard(){
  final ProductSceneView view=getCurrentSceneView();
  if (view != null) {
    Product product=view.getProduct();
    if (product != null) {
      if (product.isMultiSize()) {
        final Product resampledProduct=MultisizeIssue.maybeResample(product);
        if (resampledProduct != null) {
          product=resampledProduct;
        }
 else {
          return;
        }
      }
      SystemUtils.copyToClipboard(product.createPixelInfoString(view.getCurrentPixelX(),view.getCurrentPixelY()));
    }
  }
}

Fixed version (ground truth):
private void copyPixelInfoStringToClipboard(){
  final ProductSceneView view=getCurrentSceneView();
  if (view != null) {
    Product product=view.getProduct();
    if (product != null) {
      if (product.isMultiSize()) {
        final Product resampledProduct=MultiSizeIssue0.maybeResample(product);
        if (resampledProduct != null) {
          product=resampledProduct;
        }
 else {
          return;
        }
      }
      SystemUtils.copyToClipboard(product.createPixelInfoString(view.getCurrentPixelX(),view.getCurrentPixelY()));
    }
  }
}
Program: 62478
Project: 62478
Buggy source:
@Override public void actionPerformed(final ActionEvent event){
  if (product != null) {
    if (product.isMultiSize()) {
      final Product resampledProduct=MultisizeIssue.maybeResample(this.product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
    }
    openProductSceneViewHSV(product,HELP_ID);
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(final ActionEvent event){
  if (product != null) {
    if (product.isMultiSize()) {
      final Product resampledProduct=MultiSizeIssue0.maybeResample(this.product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
    }
    openProductSceneViewHSV(product,HELP_ID);
  }
}
Program: 62479
Project: 62479
Buggy source:
@Override public void actionPerformed(ActionEvent e){
  if (product != null) {
    if (product.isMultiSize()) {
      final Product resampledProduct=MultisizeIssue.maybeResample(this.product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
    }
    openProductSceneViewRGB(product,HELP_ID);
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent e){
  if (product != null) {
    if (product.isMultiSize()) {
      final Product resampledProduct=MultiSizeIssue0.maybeResample(this.product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
    }
    openProductSceneViewRGB(product,HELP_ID);
  }
}
Program: 62480
Project: 62480
Buggy source:
@Override public void actionPerformed(ActionEvent actionEvent){
  final ProductNodeList<Product> products=new ProductNodeList<>();
  Product[] openedProducts=SnapApp.getDefault().getProductManager().getProducts();
  for (  Product prod : openedProducts) {
    products.add(prod);
  }
  Product product=SnapApp.getDefault().getSelectedProduct(EXPLORER);
  if (product == null) {
    product=products.getAt(0);
  }
  if (MultisizeIssue.isMultiSize(product)) {
    final Product resampledProduct=MultisizeIssue.maybeResample(product);
    if (resampledProduct != null) {
      product=resampledProduct;
      products.add(resampledProduct);
    }
  }
  Collection<? extends RasterDataNode> selectedRasters=Utilities.actionsGlobalContext().lookupAll(RasterDataNode.class);
  String expression=selectedRasters.stream().map(ProductNode::getName).collect(Collectors.joining("String_Node_Str"));
  BandMathsDialog bandMathsDialog=new BandMathsDialog(product,products,expression,HELP_ID);
  bandMathsDialog.show();
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent actionEvent){
  final ProductNodeList<Product> products=new ProductNodeList<>();
  Product[] openedProducts=SnapApp.getDefault().getProductManager().getProducts();
  for (  Product prod : openedProducts) {
    products.add(prod);
  }
  Product product=SnapApp.getDefault().getSelectedProduct(EXPLORER);
  if (product == null) {
    product=products.getAt(0);
  }
  if (MultiSizeIssue0.isMultiSize(product)) {
    final Product resampledProduct=MultiSizeIssue0.maybeResample(product);
    if (resampledProduct != null) {
      product=resampledProduct;
      products.add(resampledProduct);
    }
  }
  Collection<? extends RasterDataNode> selectedRasters=Utilities.actionsGlobalContext().lookupAll(RasterDataNode.class);
  String expression=selectedRasters.stream().map(ProductNode::getName).collect(Collectors.joining("String_Node_Str"));
  BandMathsDialog bandMathsDialog=new BandMathsDialog(product,products,expression,HELP_ID);
  bandMathsDialog.show();
}
Program: 62481
Project: 62481
Buggy source:
@Override public void actionPerformed(ActionEvent actionEvent){
  final Product product=virtualBand.getProduct();
  if (product != null && product.isMultiSize()) {
    virtualBand=null;
    final Product resampledProduct=MultisizeIssue.maybeResample(product);
    if (resampledProduct != null) {
      final Band band=resampledProduct.getBand(virtualBand.getName());
      if (band instanceof VirtualBand) {
        virtualBand=(VirtualBand)band;
      }
    }
  }
  if (virtualBand != null) {
    PropagateUncertaintyDialog dialog=new PropagateUncertaintyDialog(virtualBand);
    dialog.show();
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent actionEvent){
  final Product product=virtualBand.getProduct();
  if (product != null && product.isMultiSize()) {
    virtualBand=null;
    final Product resampledProduct=MultiSizeIssue0.maybeResample(product);
    if (resampledProduct != null) {
      final Band band=resampledProduct.getBand(virtualBand.getName());
      if (band instanceof VirtualBand) {
        virtualBand=(VirtualBand)band;
      }
    }
  }
  if (virtualBand != null) {
    PropagateUncertaintyDialog dialog=new PropagateUncertaintyDialog(virtualBand);
    dialog.show();
  }
}
Program: 62482
Project: 62482
Buggy source:
private static void copyMaskPixel(Mask[] selectedMasks,Product sourceProduct,Product[] maskPixelTargetProducts){
  if (MultisizeIssue.isMultiSize(sourceProduct)) {
    final Product resampledProduct=MultisizeIssue.maybeResample(sourceProduct);
    if (resampledProduct != null) {
      sourceProduct=resampledProduct;
      for (int i=0; i < selectedMasks.length; i++) {
        Mask selectedMask=selectedMasks[i];
        selectedMasks[i]=sourceProduct.getMaskGroup().get(selectedMask.getName());
      }
    }
 else {
      return;
    }
  }
  for (  Product targetProduct : maskPixelTargetProducts) {
    if (sourceProduct.isCompatibleProduct(targetProduct,1.0e-3f)) {
      copyBandData(selectedMasks,targetProduct);
    }
 else {
      reprojectBandData(selectedMasks,sourceProduct,targetProduct);
    }
  }
}

Fixed version (ground truth):
private static void copyMaskPixel(Mask[] selectedMasks,Product sourceProduct,Product[] maskPixelTargetProducts){
  if (MultiSizeIssue0.isMultiSize(sourceProduct)) {
    final Product resampledProduct=MultiSizeIssue0.maybeResample(sourceProduct);
    if (resampledProduct != null) {
      sourceProduct=resampledProduct;
      for (int i=0; i < selectedMasks.length; i++) {
        Mask selectedMask=selectedMasks[i];
        selectedMasks[i]=sourceProduct.getMaskGroup().get(selectedMask.getName());
      }
    }
 else {
      return;
    }
  }
  for (  Product targetProduct : maskPixelTargetProducts) {
    if (sourceProduct.isCompatibleProduct(targetProduct,1.0e-3f)) {
      copyBandData(selectedMasks,targetProduct);
    }
 else {
      reprojectBandData(selectedMasks,sourceProduct,targetProduct);
    }
  }
}
Program: 62483
Project: 62483
Buggy source:
private void checkForMultiSize(Product product){
  if (product != null && product.isMultiSize()) {
    final Product resampledProduct=MultisizeIssue.maybeResample(product);
    if (resampledProduct != null) {
      selectionChanged(resampledProduct,null,null);
    }
  }
}

Fixed version (ground truth):
private void checkForMultiSize(Product product){
  if (product != null && product.isMultiSize()) {
    final Product resampledProduct=MultiSizeIssue0.maybeResample(product);
    if (resampledProduct != null) {
      selectionChanged(resampledProduct,null,null);
    }
  }
}
Program: 62484
Project: 62484
Buggy source:
public static void createSubset(Product sourceProduct,Rectangle bounds){
  if (MultisizeIssue.isMultiSize(sourceProduct)) {
    final Product resampledProduct=MultisizeIssue.maybeResample(sourceProduct);
    if (resampledProduct != null) {
      sourceProduct=resampledProduct;
    }
 else {
      return;
    }
  }
  final String subsetName="String_Node_Str" + CreateSubsetAction.subsetNumber + "String_Node_Str"+ sourceProduct.getName();
  final ProductSubsetDef initSubset=new ProductSubsetDef();
  initSubset.setRegion(bounds);
  initSubset.setNodeNames(sourceProduct.getBandNames());
  initSubset.addNodeNames(sourceProduct.getTiePointGridNames());
  initSubset.setIgnoreMetadata(false);
  final ProductSubsetDialog subsetDialog=new ProductSubsetDialog(SnapApp.getDefault().getMainFrame(),sourceProduct,initSubset);
  if (subsetDialog.show() != ProductSubsetDialog.ID_OK) {
    return;
  }
  final ProductSubsetDef subsetDef=subsetDialog.getProductSubsetDef();
  if (subsetDef == null) {
    Dialogs.showInformation(Bundle.CTL_CreateSubsetFromViewAction_Title(),"String_Node_Str",null);
    return;
  }
  try {
    final Product subset=sourceProduct.createSubset(subsetDef,subsetName,sourceProduct.getDescription());
    SnapApp.getDefault().getProductManager().addProduct(subset);
    CreateSubsetAction.subsetNumber++;
  }
 catch (  Exception e) {
    final String msg="String_Node_Str" + e.getMessage();
    SnapApp.getDefault().handleError(msg,e);
  }
}

Fixed version (ground truth):
public static void createSubset(Product sourceProduct,Rectangle bounds){
  if (MultiSizeIssue0.isMultiSize(sourceProduct)) {
    final Product resampledProduct=MultiSizeIssue0.maybeResample(sourceProduct);
    if (resampledProduct != null) {
      sourceProduct=resampledProduct;
    }
 else {
      return;
    }
  }
  final String subsetName="String_Node_Str" + CreateSubsetAction.subsetNumber + "String_Node_Str"+ sourceProduct.getName();
  final ProductSubsetDef initSubset=new ProductSubsetDef();
  initSubset.setRegion(bounds);
  initSubset.setNodeNames(sourceProduct.getBandNames());
  initSubset.addNodeNames(sourceProduct.getTiePointGridNames());
  initSubset.setIgnoreMetadata(false);
  final ProductSubsetDialog subsetDialog=new ProductSubsetDialog(SnapApp.getDefault().getMainFrame(),sourceProduct,initSubset);
  if (subsetDialog.show() != ProductSubsetDialog.ID_OK) {
    return;
  }
  final ProductSubsetDef subsetDef=subsetDialog.getProductSubsetDef();
  if (subsetDef == null) {
    Dialogs.showInformation(Bundle.CTL_CreateSubsetFromViewAction_Title(),"String_Node_Str",null);
    return;
  }
  try {
    final Product subset=sourceProduct.createSubset(subsetDef,subsetName,sourceProduct.getDescription());
    SnapApp.getDefault().getProductManager().addProduct(subset);
    CreateSubsetAction.subsetNumber++;
  }
 catch (  Exception e) {
    final String msg="String_Node_Str" + e.getMessage();
    SnapApp.getDefault().handleError(msg,e);
  }
}
Program: 62486
Project: 62486
Buggy source:
@Override public void intervalAdded(ListDataEvent e){
  final Product[] propertySourceProducts=binningFormModel.getPropertyValue(BinningFormModel.PROPERTY_KEY_SOURCE_PRODUCTS);
  final Product[] newSourceProducts=sourceProductList.getSourceProducts();
  for (  Product newSourceProduct : newSourceProducts) {
    if ((propertySourceProducts == null || !ArrayUtils.isMemberOf(newSourceProduct,propertySourceProducts)) && newSourceProduct.isMultiSize()) {
      _MultiSizeIssue.maybeResample(newSourceProduct);
    }
  }
  contentsChanged(e);
}

Fixed version (ground truth):
@Override public void intervalAdded(ListDataEvent e){
  final Product[] propertySourceProducts=binningFormModel.getPropertyValue(BinningFormModel.PROPERTY_KEY_SOURCE_PRODUCTS);
  final Product[] newSourceProducts=sourceProductList.getSourceProducts();
  for (  Product newSourceProduct : newSourceProducts) {
    if ((propertySourceProducts == null || !ArrayUtils.isMemberOf(newSourceProduct,propertySourceProducts)) && newSourceProduct.isMultiSize()) {
      MultiSizeIssue.maybeResample(newSourceProduct);
    }
  }
  contentsChanged(e);
}
Program: 62487
Project: 62487
Buggy source:
private void maybeCheckForMultisize(Product product){
  final Product resampledProduct=_MultiSizeIssue.maybeResample(product);
  if (resampledProduct != null) {
    productListModel.setSelectedItem(resampledProduct);
  }
 else {
    productListModel.setSelectedItem(null);
    for (int i=0; i < getProductCount(); i++) {
      final Object element=productListModel.getElementAt(i);
      if (element != null && element instanceof Product) {
        final Product someProduct=(Product)element;
        if (!someProduct.isMultiSize()) {
          productListModel.setSelectedItem(someProduct);
          break;
        }
      }
    }
  }
}

Fixed version (ground truth):
private void maybeCheckForMultisize(Product product){
  final Product resampledProduct=MultiSizeIssue.maybeResample(product);
  if (resampledProduct != null) {
    productListModel.setSelectedItem(resampledProduct);
  }
 else {
    productListModel.setSelectedItem(null);
    for (int i=0; i < getProductCount(); i++) {
      final Object element=productListModel.getElementAt(i);
      if (element != null && element instanceof Product) {
        final Product someProduct=(Product)element;
        if (!someProduct.isMultiSize()) {
          productListModel.setSelectedItem(someProduct);
          break;
        }
      }
    }
  }
}
Program: 62488
Project: 62488
Buggy source:
@Override public void intervalAdded(ListDataEvent e){
  final Product[] propertySourceProducts=container.getValue("String_Node_Str");
  final Product[] newSourceProducts=sourceProductList.getSourceProducts();
  for (  Product newSourceProduct : newSourceProducts) {
    if ((propertySourceProducts == null || !ArrayUtils.isMemberOf(newSourceProduct,propertySourceProducts)) && newSourceProduct.isMultiSize()) {
      _MultiSizeIssue.maybeResample(newSourceProduct);
    }
  }
}

Fixed version (ground truth):
@Override public void intervalAdded(ListDataEvent e){
  final Product[] propertySourceProducts=container.getValue("String_Node_Str");
  final Product[] newSourceProducts=sourceProductList.getSourceProducts();
  for (  Product newSourceProduct : newSourceProducts) {
    if ((propertySourceProducts == null || !ArrayUtils.isMemberOf(newSourceProduct,propertySourceProducts)) && newSourceProduct.isMultiSize()) {
      MultiSizeIssue.maybeResample(newSourceProduct);
    }
  }
}
Program: 62490
Project: 62490
Buggy source:
/** 
 * @return {@code Boolean.TRUE} on success, {@code Boolean.FALSE} on failure, or {@code null} on cancellation.
 */
public Boolean execute(){
  Product product=productRef.get();
  if (product != null) {
    if (product.isMultiSize()) {
      final Product resampledProduct=_MultiSizeIssue.maybeResample(product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
 else {
        return false;
      }
    }
    return exportProduct(product,(String)getValue(PROPERTY_FORMAT_NAME));
  }
 else {
    return true;
  }
}

Fixed version (ground truth):
/** 
 * @return {@code Boolean.TRUE} on success, {@code Boolean.FALSE} on failure, or {@code null} on cancellation.
 */
public Boolean execute(){
  Product product=productRef.get();
  if (product != null) {
    if (product.isMultiSize()) {
      final Product resampledProduct=MultiSizeIssue.maybeResample(product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
 else {
        return false;
      }
    }
    return exportProduct(product,(String)getValue(PROPERTY_FORMAT_NAME));
  }
 else {
    return true;
  }
}
Program: 62491
Project: 62491
Buggy source:
/** 
 * Invoked when a command action is performed.
 * @param event the command event
 */
@Override public void actionPerformed(ActionEvent event){
  ProductSceneView sceneView=SnapApp.getDefault().getSelectedProductSceneView();
  if (sceneView != null) {
    Product product=sceneView.getProduct();
    if (product.isMultiSize()) {
      final Product resampledProduct=_MultiSizeIssue.maybeResample(product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
 else {
        return;
      }
    }
    exportMaskPixels(product);
  }
}

Fixed version (ground truth):
/** 
 * Invoked when a command action is performed.
 * @param event the command event
 */
@Override public void actionPerformed(ActionEvent event){
  ProductSceneView sceneView=SnapApp.getDefault().getSelectedProductSceneView();
  if (sceneView != null) {
    Product product=sceneView.getProduct();
    if (product.isMultiSize()) {
      final Product resampledProduct=MultiSizeIssue.maybeResample(product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
 else {
        return;
      }
    }
    exportMaskPixels(product);
  }
}
Program: 62492
Project: 62492
Buggy source:
/** 
 * Invoked when a command action is performed.
 * @param event the command event
 */
@Override public void actionPerformed(ActionEvent event){
  final ProductSceneView sceneView=SnapApp.getDefault().getSelectedProductSceneView();
  if (sceneView != null && sceneView.getProduct().isMultiSize()) {
    _MultiSizeIssue.maybeResample(sceneView.getProduct());
  }
 else {
    exportTransectPixels();
  }
}

Fixed version (ground truth):
/** 
 * Invoked when a command action is performed.
 * @param event the command event
 */
@Override public void actionPerformed(ActionEvent event){
  final ProductSceneView sceneView=SnapApp.getDefault().getSelectedProductSceneView();
  if (sceneView != null && sceneView.getProduct().isMultiSize()) {
    MultiSizeIssue.maybeResample(sceneView.getProduct());
  }
 else {
    exportTransectPixels();
  }
}
Program: 62493
Project: 62493
Buggy source:
private void copyPixelInfoStringToClipboard(){
  final ProductSceneView view=getCurrentSceneView();
  if (view != null) {
    Product product=view.getProduct();
    if (product != null) {
      if (product.isMultiSize()) {
        final Product resampledProduct=_MultiSizeIssue.maybeResample(product);
        if (resampledProduct != null) {
          product=resampledProduct;
        }
 else {
          return;
        }
      }
      SystemUtils.copyToClipboard(product.createPixelInfoString(view.getCurrentPixelX(),view.getCurrentPixelY()));
    }
  }
}

Fixed version (ground truth):
private void copyPixelInfoStringToClipboard(){
  final ProductSceneView view=getCurrentSceneView();
  if (view != null) {
    Product product=view.getProduct();
    if (product != null) {
      if (product.isMultiSize()) {
        final Product resampledProduct=MultiSizeIssue.maybeResample(product);
        if (resampledProduct != null) {
          product=resampledProduct;
        }
 else {
          return;
        }
      }
      SystemUtils.copyToClipboard(product.createPixelInfoString(view.getCurrentPixelX(),view.getCurrentPixelY()));
    }
  }
}
Program: 62494
Project: 62494
Buggy source:
@Override public void actionPerformed(final ActionEvent event){
  if (product != null) {
    if (product.isMultiSize()) {
      final Product resampledProduct=_MultiSizeIssue.maybeResample(this.product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
    }
    openProductSceneViewHSV(product,HELP_ID);
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(final ActionEvent event){
  if (product != null) {
    if (product.isMultiSize()) {
      final Product resampledProduct=MultiSizeIssue.maybeResample(this.product);
      if (resampledProduct != null) {
        product=resampledProduct;
      }
    }
    openProductSceneViewHSV(product,HELP_ID);
  }
}