Program: 140040
Project: 140040
Buggy source:
@Override protected void addFields(){
  Group group=new Group(this,SWT.NONE);
  group.setLayout(new GridLayout(2,false));
  group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  group.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  GridData gdText=new GridData(GridData.FILL_HORIZONTAL);
  Label lowerLabel=new Label(group,SWT.NONE);
  lowerLabel.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  lowerText=new Text(group,SWT.BORDER);
  lowerText.setLayoutData(gdText);
  Label higherLabel=new Label(group,SWT.NONE);
  higherLabel.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  higherText=new Text(group,SWT.BORDER);
  higherText.setLayoutData(gdText);
  if (!isOptionForRowCount && !isRangeForDate) {
    Group pGroup=new Group(this,SWT.NONE);
    pGroup.setLayout(new GridLayout(2,false));
    pGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    pGroup.setText(DefaultMessagesImpl.getString("String_Node_Str"));
    Label pLower=new Label(pGroup,SWT.NONE);
    pLower.setText(DefaultMessagesImpl.getString("String_Node_Str"));
    pLowerText=new Text(pGroup,SWT.BORDER);
    pLowerText.setLayoutData(gdText);
    Label pHigher=new Label(pGroup,SWT.NONE);
    pHigher.setText(DefaultMessagesImpl.getString("String_Node_Str"));
    pHigherText=new Text(pGroup,SWT.BORDER);
    pHigherText.setLayoutData(gdText);
    setPercentUIEnable();
  }
}

Fixed version (ground truth):
@Override protected void addFields(){
  int colsForLayout=2;
  if (isRangeForDate) {
    colsForLayout=4;
  }
  Group group=new Group(this,SWT.NONE);
  group.setLayout(new GridLayout(colsForLayout,false));
  group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
  group.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  GridData gdText=new GridData(GridData.FILL_HORIZONTAL);
  Label lowerLabel=new Label(group,SWT.NONE);
  lowerLabel.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  lowerText=new Text(group,SWT.BORDER);
  lowerText.setLayoutData(gdText);
  if (isRangeForDate) {
    lowerBTN=new Button(group,SWT.PUSH);
    lowerBTN.setText("String_Node_Str");
    lowerDelBTN=new Button(group,SWT.PUSH);
    lowerDelBTN.setImage(ImageLib.getImage(ImageLib.DELETE_ACTION));
    lowerText.setEditable(false);
    lowerText.setEnabled(false);
  }
  Label higherLabel=new Label(group,SWT.NONE);
  higherLabel.setText(DefaultMessagesImpl.getString("String_Node_Str"));
  higherText=new Text(group,SWT.BORDER);
  higherText.setLayoutData(gdText);
  if (isRangeForDate) {
    higherBTN=new Button(group,SWT.PUSH);
    higherBTN.setText("String_Node_Str");
    higherDelBTN=new Button(group,SWT.PUSH);
    higherDelBTN.setImage(ImageLib.getImage(ImageLib.DELETE_ACTION));
    higherText.setEditable(false);
    higherText.setEnabled(false);
  }
  if (!isOptionForRowCount && !isRangeForDate) {
    Group pGroup=new Group(this,SWT.NONE);
    pGroup.setLayout(new GridLayout(2,false));
    pGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    pGroup.setText(DefaultMessagesImpl.getString("String_Node_Str"));
    Label pLower=new Label(pGroup,SWT.NONE);
    pLower.setText(DefaultMessagesImpl.getString("String_Node_Str"));
    pLowerText=new Text(pGroup,SWT.BORDER);
    pLowerText.setLayoutData(gdText);
    Label pHigher=new Label(pGroup,SWT.NONE);
    pHigher.setText(DefaultMessagesImpl.getString("String_Node_Str"));
    pHigherText=new Text(pGroup,SWT.BORDER);
    pHigherText.setLayoutData(gdText);
    setPercentUIEnable();
  }
}