Program: 146219
Project: 146219
Buggy source:
protected LineItem[] getResults(){
  Cursor waitCursor=null;
  try {
    Display display=getEditor().getSite().getPage().getWorkbenchWindow().getWorkbench().getDisplay();
    waitCursor=new Cursor(display,SWT.CURSOR_WAIT);
    this.getSite().getShell().setCursor(waitCursor);
    XtentisPort port=Util.getPort(getXObject());
    long from=-1;
    long to=-1;
    SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
    Pattern pattern=Pattern.compile("String_Node_Str");
    if (!"String_Node_Str".equals(fromText.getText())) {
      String dateTimeText=fromText.getText().trim();
      Matcher matcher=pattern.matcher(dateTimeText);
      if (!matcher.matches()) {
        MessageDialog.openWarning(this.getSite().getShell(),"String_Node_Str","String_Node_Str");
        return new LineItem[0];
      }
      try {
        Date d=sdf.parse(fromText.getText());
        from=d.getTime();
      }
 catch (      ParseException pe) {
      }
    }
    if (!"String_Node_Str".equals(toText.getText())) {
      String dateTimeText=toText.getText().trim();
      Matcher matcher=pattern.matcher(dateTimeText);
      if (!matcher.matches()) {
        MessageDialog.openWarning(this.getSite().getShell(),"String_Node_Str","String_Node_Str");
        return new LineItem[0];
      }
      try {
        Date d=sdf.parse(toText.getText());
        to=d.getTime();
      }
 catch (      ParseException pe) {
      }
    }
    String concept=conceptCombo.getText();
    if ("String_Node_Str".equals(concept) | "String_Node_Str".equals(concept))     concept=null;
    if (concept != null) {
      concept=concept.replaceAll("String_Node_Str","String_Node_Str").trim();
    }
    String keys=keyText.getText();
    if ("String_Node_Str".equals(keys) | "String_Node_Str".equals(keys))     keys=null;
    String search=searchText.getText();
    if ("String_Node_Str".equals(search) | "String_Node_Str".equals(search))     search=null;
    WSItemPKsByCriteriaResponseResults[] results=port.getItemPKsByCriteria(new WSGetItemPKsByCriteria((WSDataClusterPK)getXObject().getWsKey(),concept,search,keys,from,to,0,Integer.MAX_VALUE)).getResults();
    if (results == null) {
      MessageDialog.openInformation(this.getSite().getShell(),"String_Node_Str","String_Node_Str");
      return new LineItem[0];
    }
    LineItem[] res=new LineItem[results.length];
    for (int i=0; i < results.length; i++) {
      res[i]=new LineItem(results[i].getDate(),results[i].getWsItemPK().getConceptName(),results[i].getWsItemPK().getIds());
    }
    return res;
  }
 catch (  Exception e) {
    e.printStackTrace();
    if ((e.getLocalizedMessage() != null) && e.getLocalizedMessage().contains("String_Node_Str"))     MessageDialog.openError(this.getSite().getShell(),"String_Node_Str","String_Node_Str");
 else     MessageDialog.openError(this.getSite().getShell(),"String_Node_Str",e.getLocalizedMessage());
    return null;
  }
 finally {
    try {
      this.getSite().getShell().setCursor(null);
      waitCursor.dispose();
    }
 catch (    Exception e) {
    }
  }
}

Fixed version (ground truth):
protected LineItem[] getResults(boolean showResultInfo){
  Cursor waitCursor=null;
  try {
    Display display=getEditor().getSite().getPage().getWorkbenchWindow().getWorkbench().getDisplay();
    waitCursor=new Cursor(display,SWT.CURSOR_WAIT);
    this.getSite().getShell().setCursor(waitCursor);
    XtentisPort port=Util.getPort(getXObject());
    long from=-1;
    long to=-1;
    SimpleDateFormat sdf=new SimpleDateFormat("String_Node_Str");
    Pattern pattern=Pattern.compile("String_Node_Str");
    if (!"String_Node_Str".equals(fromText.getText())) {
      String dateTimeText=fromText.getText().trim();
      Matcher matcher=pattern.matcher(dateTimeText);
      if (!matcher.matches()) {
        MessageDialog.openWarning(this.getSite().getShell(),"String_Node_Str","String_Node_Str");
        return new LineItem[0];
      }
      try {
        Date d=sdf.parse(fromText.getText());
        from=d.getTime();
      }
 catch (      ParseException pe) {
      }
    }
    if (!"String_Node_Str".equals(toText.getText())) {
      String dateTimeText=toText.getText().trim();
      Matcher matcher=pattern.matcher(dateTimeText);
      if (!matcher.matches()) {
        MessageDialog.openWarning(this.getSite().getShell(),"String_Node_Str","String_Node_Str");
        return new LineItem[0];
      }
      try {
        Date d=sdf.parse(toText.getText());
        to=d.getTime();
      }
 catch (      ParseException pe) {
      }
    }
    String concept=conceptCombo.getText();
    if ("String_Node_Str".equals(concept) | "String_Node_Str".equals(concept))     concept=null;
    if (concept != null) {
      concept=concept.replaceAll("String_Node_Str","String_Node_Str").trim();
    }
    String keys=keyText.getText();
    if ("String_Node_Str".equals(keys) | "String_Node_Str".equals(keys))     keys=null;
    String search=searchText.getText();
    if ("String_Node_Str".equals(search) | "String_Node_Str".equals(search))     search=null;
    WSItemPKsByCriteriaResponseResults[] results=port.getItemPKsByCriteria(new WSGetItemPKsByCriteria((WSDataClusterPK)getXObject().getWsKey(),concept,search,keys,from,to,0,Integer.MAX_VALUE)).getResults();
    if (showResultInfo && (results == null)) {
      MessageDialog.openInformation(this.getSite().getShell(),"String_Node_Str","String_Node_Str");
      return new LineItem[0];
    }
    LineItem[] res=new LineItem[results.length];
    for (int i=0; i < results.length; i++) {
      res[i]=new LineItem(results[i].getDate(),results[i].getWsItemPK().getConceptName(),results[i].getWsItemPK().getIds());
    }
    return res;
  }
 catch (  Exception e) {
    e.printStackTrace();
    if ((e.getLocalizedMessage() != null) && e.getLocalizedMessage().contains("String_Node_Str"))     MessageDialog.openError(this.getSite().getShell(),"String_Node_Str","String_Node_Str");
 else     MessageDialog.openError(this.getSite().getShell(),"String_Node_Str",e.getLocalizedMessage());
    return null;
  }
 finally {
    try {
      this.getSite().getShell().setCursor(null);
      waitCursor.dispose();
    }
 catch (    Exception e) {
    }
  }
}