Program: 141762
Project: 141762
Buggy source:
public void setReadOnly(boolean isReadOnly){
  if (isReadOnly) {
    ActionRegistry actionRegistry=getActionRegistry();
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction(GEFActionConstants.DIRECT_EDIT));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
    actionRegistry.removeAction(actionRegistry.getAction("String_Node_Str"));
  }
}

Fixed version (ground truth):
public void setReadOnly(boolean isReadOnly){
  if (isReadOnly) {
    ActionRegistry actionRegistry=getActionRegistry();
    IAction ASDAddMessageAction=actionRegistry.getAction("String_Node_Str");
    if (ASDAddMessageAction != null) {
      actionRegistry.removeAction(ASDAddMessageAction);
    }
    IAction ASDAddPartAction=actionRegistry.getAction("String_Node_Str");
    if (ASDAddPartAction != null) {
      actionRegistry.removeAction(ASDAddPartAction);
    }
    IAction ASDSetNewMessageAction=actionRegistry.getAction("String_Node_Str");
    if (ASDSetNewMessageAction != null) {
      actionRegistry.removeAction(ASDSetNewMessageAction);
    }
    IAction ASDSetMessageInterfaceAction=actionRegistry.getAction("String_Node_Str");
    if (ASDSetMessageInterfaceAction != null) {
      actionRegistry.removeAction(ASDSetMessageInterfaceAction);
    }
    IAction ASDSetNewTypeAction=actionRegistry.getAction("String_Node_Str");
    if (ASDSetNewTypeAction != null) {
      actionRegistry.removeAction(ASDSetNewTypeAction);
    }
    IAction ASDSetExistingTypeAction=actionRegistry.getAction("String_Node_Str");
    if (ASDSetExistingTypeAction != null) {
      actionRegistry.removeAction(ASDSetExistingTypeAction);
    }
    IAction ASDSetNewElementAction=actionRegistry.getAction("String_Node_Str");
    if (ASDSetNewElementAction != null) {
      actionRegistry.removeAction(ASDSetNewElementAction);
    }
    IAction ASDSetExistingElementAction=actionRegistry.getAction("String_Node_Str");
    if (ASDSetExistingElementAction != null) {
      actionRegistry.removeAction(ASDSetExistingElementAction);
    }
    IAction directEditAction=actionRegistry.getAction(GEFActionConstants.DIRECT_EDIT);
    if (directEditAction != null) {
      actionRegistry.removeAction(directEditAction);
    }
    IAction ASDAddServiceAction=actionRegistry.getAction("String_Node_Str");
    if (ASDAddServiceAction != null) {
      actionRegistry.removeAction(ASDAddServiceAction);
    }
    IAction ASDAddBindingAction=actionRegistry.getAction("String_Node_Str");
    if (ASDAddBindingAction != null) {
      actionRegistry.removeAction(ASDAddBindingAction);
    }
    IAction ASDAddInterfaceAction=actionRegistry.getAction("String_Node_Str");
    if (ASDAddInterfaceAction != null) {
      actionRegistry.removeAction(ASDAddInterfaceAction);
    }
    IAction ASDAddEndPointAction=actionRegistry.getAction("String_Node_Str");
    if (ASDAddEndPointAction != null) {
      actionRegistry.removeAction(ASDAddEndPointAction);
    }
    IAction ASDAddOperationAction=actionRegistry.getAction("String_Node_Str");
    if (ASDAddOperationAction != null) {
      actionRegistry.removeAction(ASDAddOperationAction);
    }
    IAction ASDAddInputActionn=actionRegistry.getAction("String_Node_Str");
    if (ASDAddInputActionn != null) {
      actionRegistry.removeAction(ASDAddInputActionn);
    }
    IAction ASDAddOutputActionn=actionRegistry.getAction("String_Node_Str");
    if (ASDAddInputActionn != null) {
      actionRegistry.removeAction(ASDAddOutputActionn);
    }
    IAction ASDAddFaultActionn=actionRegistry.getAction("String_Node_Str");
    if (ASDAddFaultActionn != null) {
      actionRegistry.removeAction(ASDAddFaultActionn);
    }
    IAction ASDDeleteAction=actionRegistry.getAction("String_Node_Str");
    if (ASDDeleteAction != null) {
      actionRegistry.removeAction(ASDDeleteAction);
    }
    IAction ASDSetNewBindingAction=actionRegistry.getAction("String_Node_Str");
    if (ASDSetNewBindingAction != null) {
      actionRegistry.removeAction(ASDSetNewBindingAction);
    }
    IAction ASDSetExistingBindingAction=actionRegistry.getAction("String_Node_Str");
    if (ASDSetExistingBindingAction != null) {
      actionRegistry.removeAction(ASDSetExistingBindingAction);
    }
    IAction ASDSetNewInterfaceAction=actionRegistry.getAction("String_Node_Str");
    if (ASDSetNewInterfaceAction != null) {
      actionRegistry.removeAction(ASDSetNewInterfaceAction);
    }
    IAction ASDSetExistingInterfaceAction=actionRegistry.getAction("String_Node_Str");
    if (ASDSetExistingInterfaceAction != null) {
      actionRegistry.removeAction(ASDSetExistingInterfaceAction);
    }
    IAction ASDGenerateBindingActionn=actionRegistry.getAction("String_Node_Str");
    if (ASDGenerateBindingActionn != null) {
      actionRegistry.removeAction(ASDGenerateBindingActionn);
    }
    IAction ASDAddImportAction=actionRegistry.getAction("String_Node_Str");
    if (ASDAddImportAction != null) {
      actionRegistry.removeAction(ASDAddImportAction);
    }
    IAction ASDAddParameterAction=actionRegistry.getAction("String_Node_Str");
    if (ASDAddParameterAction != null) {
      actionRegistry.removeAction(ASDAddParameterAction);
    }
    IAction ASDAddSchemaAction=actionRegistry.getAction("String_Node_Str");
    if (ASDAddSchemaAction != null) {
      actionRegistry.removeAction(ASDAddSchemaAction);
    }
    IAction ASDOpenSchemaAction=actionRegistry.getAction("String_Node_Str");
    if (ASDOpenSchemaAction != null) {
      actionRegistry.removeAction(ASDOpenSchemaAction);
    }
    IAction ASDOpenImportAction=actionRegistry.getAction("String_Node_Str");
    if (ASDOpenImportAction != null) {
      actionRegistry.removeAction(ASDOpenImportAction);
    }
    IAction OpenInNewEditorAction=actionRegistry.getAction("String_Node_Str");
    if (OpenInNewEditorAction != null) {
      actionRegistry.removeAction(OpenInNewEditorAction);
    }
  }
}