Program: 69353
Project: 69353
Buggy source:
public PortfolioCourseNodeEditController(UserRequest ureq,WindowControl wControl,BreadcrumbPanel stackPanel,ICourse course,PortfolioCourseNode node,ModuleConfiguration config,UserCourseEnvironment euce){
  super(ureq,wControl);
  this.config=config;
  this.courseNode=node;
  configForm=new PortfolioConfigForm(ureq,wControl,stackPanel,course,node);
  listenTo(configForm);
  scoringController=new MSEditFormController(ureq,wControl,config);
  scoringContent=scoringController.getInitialComponent();
  listenTo(scoringController);
  textForm=new PortfolioTextForm(ureq,wControl,course,node);
  listenTo(textForm);
  configContent=createVelocityContainer("String_Node_Str");
  configContent.put("String_Node_Str",configForm.getInitialComponent());
  configContent.put("String_Node_Str",textForm.getInitialComponent());
  CourseEditorTreeModel editorModel=course.getEditorTreeModel();
  Condition accessCondition=node.getPreConditionAccess();
  accessibilityCondContr=new ConditionEditController(ureq,getWindowControl(),euce,accessCondition,AssessmentHelper.getAssessableNodes(editorModel,node));
  listenTo(accessibilityCondContr);
  highScoreNodeConfigController=new HighScoreEditController(ureq,wControl,node,euce);
  listenTo(highScoreNodeConfigController);
  UserNodeAuditManager am=course.getCourseEnvironment().getAuditManager();
  hasLogEntries=am.hasUserNodeLogs(node);
  configContent.contextPut("String_Node_Str",new Boolean(hasLogEntries));
  if (hasLogEntries) {
    scoringController.setDisplayOnly(true);
  }
  configContent.contextPut("String_Node_Str",new Boolean(false));
}

Fixed version (ground truth):
public PortfolioCourseNodeEditController(UserRequest ureq,WindowControl wControl,BreadcrumbPanel stackPanel,ICourse course,PortfolioCourseNode node,ModuleConfiguration config,UserCourseEnvironment euce){
  super(ureq,wControl);
  this.config=config;
  this.courseNode=node;
  configForm=new PortfolioConfigForm(ureq,wControl,stackPanel,course,node);
  listenTo(configForm);
  scoringController=new MSEditFormController(ureq,wControl,config);
  scoringContent=scoringController.getInitialComponent();
  listenTo(scoringController);
  textForm=new PortfolioTextForm(ureq,wControl,course,node);
  listenTo(textForm);
  configContent=createVelocityContainer("String_Node_Str");
  configContent.put("String_Node_Str",configForm.getInitialComponent());
  configContent.put("String_Node_Str",textForm.getInitialComponent());
  CourseEditorTreeModel editorModel=course.getEditorTreeModel();
  Condition accessCondition=node.getPreConditionAccess();
  accessibilityCondContr=new ConditionEditController(ureq,getWindowControl(),euce,accessCondition,AssessmentHelper.getAssessableNodes(editorModel,node));
  listenTo(accessibilityCondContr);
  highScoreNodeConfigController=new HighScoreEditController(ureq,wControl,node);
  listenTo(highScoreNodeConfigController);
  UserNodeAuditManager am=course.getCourseEnvironment().getAuditManager();
  hasLogEntries=am.hasUserNodeLogs(node);
  configContent.contextPut("String_Node_Str",new Boolean(hasLogEntries));
  if (hasLogEntries) {
    scoringController.setDisplayOnly(true);
  }
  configContent.contextPut("String_Node_Str",new Boolean(false));
}