Program: 62819
Project: 62819
Buggy source:
private AdditionalSettingsFormSegment buildFormAdditionalSettings(FeedbackSessionAttributes newFeedbackSession){
  Date date;
  AdditionalSettingsFormSegment additionalSettings=new AdditionalSettingsFormSegment();
  boolean hasSessionVisibleDate=newFeedbackSession != null && !TimeHelper.isSpecialTime(newFeedbackSession.sessionVisibleFromTime);
  additionalSettings.setSessionVisibleDateButtonChecked(hasSessionVisibleDate);
  additionalSettings.setSessionVisibleDateValue(hasSessionVisibleDate ? TimeHelper.formatDate(newFeedbackSession.sessionVisibleFromTime) : "String_Node_Str");
  additionalSettings.setSessionVisibleDateDisabled(!hasSessionVisibleDate);
  date=hasSessionVisibleDate ? newFeedbackSession.sessionVisibleFromTime : null;
  additionalSettings.setSessionVisibleTimeOptions(getTimeOptionsAsElementTags(date));
  additionalSettings.setSessionVisibleAtOpenChecked(newFeedbackSession == null || Const.TIME_REPRESENTS_FOLLOW_OPENING.equals(newFeedbackSession.sessionVisibleFromTime));
  additionalSettings.setSessionVisiblePrivateChecked(newFeedbackSession != null && Const.TIME_REPRESENTS_NEVER.equals(newFeedbackSession.sessionVisibleFromTime));
  boolean hasResultVisibleDate=newFeedbackSession != null && !TimeHelper.isSpecialTime(newFeedbackSession.resultsVisibleFromTime);
  additionalSettings.setResponseVisibleDateChecked(hasResultVisibleDate);
  additionalSettings.setResponseVisibleDateValue(hasResultVisibleDate ? TimeHelper.formatDate(newFeedbackSession.resultsVisibleFromTime) : "String_Node_Str");
  additionalSettings.setResponseVisibleDateDisabled(!hasResultVisibleDate);
  date=hasResultVisibleDate ? newFeedbackSession.resultsVisibleFromTime : null;
  additionalSettings.setResponseVisibleTimeOptions(getTimeOptionsAsElementTags(date));
  additionalSettings.setResponseVisibleImmediatelyChecked((newFeedbackSession != null && Const.TIME_REPRESENTS_FOLLOW_VISIBLE.equals(newFeedbackSession.resultsVisibleFromTime)));
  additionalSettings.setResponseVisiblePublishManuallyChecked((newFeedbackSession == null || Const.TIME_REPRESENTS_LATER.equals(newFeedbackSession.resultsVisibleFromTime) || Const.TIME_REPRESENTS_NOW.equals(newFeedbackSession.resultsVisibleFromTime)));
  additionalSettings.setResponseVisibleNeverChecked((newFeedbackSession != null && Const.TIME_REPRESENTS_NEVER.equals(newFeedbackSession.resultsVisibleFromTime)));
  return additionalSettings;
}

Fixed version (ground truth):
private AdditionalSettingsFormSegment buildFormAdditionalSettings(FeedbackSessionAttributes newFeedbackSession){
  Date date;
  AdditionalSettingsFormSegment additionalSettings=new AdditionalSettingsFormSegment();
  boolean hasSessionVisibleDate=newFeedbackSession != null && !TimeHelper.isSpecialTime(newFeedbackSession.sessionVisibleFromTime);
  additionalSettings.setSessionVisibleDateButtonChecked(hasSessionVisibleDate);
  additionalSettings.setSessionVisibleDateValue(hasSessionVisibleDate ? TimeHelper.formatDate(newFeedbackSession.sessionVisibleFromTime) : "String_Node_Str");
  additionalSettings.setSessionVisibleDateDisabled(!hasSessionVisibleDate);
  date=hasSessionVisibleDate ? newFeedbackSession.sessionVisibleFromTime : null;
  additionalSettings.setSessionVisibleTimeOptions(getTimeOptionsAsElementTags(date));
  additionalSettings.setSessionVisibleAtOpenChecked(newFeedbackSession == null || Const.TIME_REPRESENTS_FOLLOW_OPENING.equals(newFeedbackSession.sessionVisibleFromTime));
  additionalSettings.setSessionVisiblePrivateChecked(newFeedbackSession != null && Const.TIME_REPRESENTS_NEVER.equals(newFeedbackSession.sessionVisibleFromTime));
  boolean hasResultVisibleDate=newFeedbackSession != null && !TimeHelper.isSpecialTime(newFeedbackSession.resultsVisibleFromTime);
  additionalSettings.setResponseVisibleDateChecked(hasResultVisibleDate);
  additionalSettings.setResponseVisibleDateValue(hasResultVisibleDate ? TimeHelper.formatDate(newFeedbackSession.resultsVisibleFromTime) : "String_Node_Str");
  additionalSettings.setResponseVisibleDateDisabled(!hasResultVisibleDate);
  date=hasResultVisibleDate ? newFeedbackSession.resultsVisibleFromTime : null;
  additionalSettings.setResponseVisibleTimeOptions(getTimeOptionsAsElementTags(date));
  additionalSettings.setResponseVisibleImmediatelyChecked((newFeedbackSession != null && Const.TIME_REPRESENTS_FOLLOW_VISIBLE.equals(newFeedbackSession.resultsVisibleFromTime)));
  additionalSettings.setResponseVisiblePublishManuallyChecked((newFeedbackSession == null || Const.TIME_REPRESENTS_LATER.equals(newFeedbackSession.resultsVisibleFromTime) || Const.TIME_REPRESENTS_NOW.equals(newFeedbackSession.resultsVisibleFromTime)));
  additionalSettings.setResponseVisibleNeverChecked((newFeedbackSession != null && Const.TIME_REPRESENTS_NEVER.equals(newFeedbackSession.resultsVisibleFromTime)));
  additionalSettings.setSendClosingEmailChecked(newFeedbackSession != null && newFeedbackSession.isClosingEmailEnabled);
  additionalSettings.setSendOpeningEmailChecked(newFeedbackSession != null && newFeedbackSession.isOpeningEmailEnabled);
  additionalSettings.setSendPublishedEmailChecked(newFeedbackSession != null && newFeedbackSession.isPublishedEmailEnabled);
  return additionalSettings;
}