Program: 138745
Project: 138745
Buggy source:
@SuppressWarnings("String_Node_Str") public Object[] getChildren(Object parentElement){
  if (parentElement instanceof IContainer) {
    IContainer container=(IContainer)parentElement;
    IResource[] members=null;
    try {
      members=container.members();
    }
 catch (    CoreException e) {
      log.error("String_Node_Str" + container.getLocation());
    }
    if (ResourceManager.getConnectionFolder().equals(container)) {
      return ProxyRepositoryViewObject.fetchAllDBRepositoryViewObjects(false).toArray();
    }
 else     if (ResourceManager.getMDMConnectionFolder().equals(container)) {
      return ProxyRepositoryViewObject.fetchAllMDMRepositoryViewObjects(false).toArray();
    }
    return members;
  }
 else   if (parentElement instanceof NamedColumnSet) {
    return null;
  }
 else   if (parentElement instanceof NamedColumnSetFolderNode) {
    NamedColumnSetFolderNode folerNode=(NamedColumnSetFolderNode)parentElement;
    folerNode.loadChildren();
    Object[] children=folerNode.getChildren();
    if (children != null && children.length > 0) {
      if (!(children[0] instanceof ColumnSet)) {
        return children;
      }
      for (int i=0; i < children.length; i++) {
        ColumnSet columnSet=(ColumnSet)children[i];
        ModelElementKey key=new ModelElementKeyImpl(columnSet);
        if (modelElementCheckedMap.containsKey(key)) {
          currentCheckedModelElement.add(columnSet);
        }
      }
    }
    return ComparatorsFactory.sort(children,ComparatorsFactory.MODELELEMENT_COMPARATOR_ID);
  }
 else   if (parentElement instanceof TdXmlSchema || parentElement instanceof TdXmlElementType) {
    boolean isXmlDocument=parentElement instanceof TdXmlSchema;
    List<? extends ModelElement> modelElements=isXmlDocument ? DqRepositoryViewService.getXMLElements((TdXmlSchema)parentElement) : DqRepositoryViewService.getXMLElements((TdXmlElementType)parentElement);
    Object[] children=XmlElementHelper.clearLeafNode(modelElements).toArray();
    if (children != null && children.length > 0) {
      if (!(children[0] instanceof TdXmlElementType)) {
        return children;
      }
      for (int i=0; i < children.length; i++) {
        TdXmlElementType xmlElement=(TdXmlElementType)children[i];
        ModelElementKey key=new ModelElementKeyImpl(xmlElement);
        if (modelElementCheckedMap.containsKey(key)) {
          currentCheckedModelElement.add(xmlElement);
        }
      }
    }
    return children.length == 0 ? null : children;
  }
  return super.getChildren(parentElement);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public Object[] getChildren(Object parentElement){
  if (parentElement instanceof IContainer) {
    IContainer container=(IContainer)parentElement;
    IResource[] members=null;
    try {
      members=container.members();
    }
 catch (    CoreException e) {
      log.error("String_Node_Str" + container.getLocation());
    }
    if (ResourceManager.getConnectionFolder().equals(container)) {
      return ProxyRepositoryViewObject.fetchAllDBRepositoryViewObjects(true).toArray();
    }
 else     if (ResourceManager.getMDMConnectionFolder().equals(container)) {
      return ProxyRepositoryViewObject.fetchAllMDMRepositoryViewObjects(true).toArray();
    }
    return members;
  }
 else   if (parentElement instanceof NamedColumnSet) {
    return null;
  }
 else   if (parentElement instanceof NamedColumnSetFolderNode) {
    NamedColumnSetFolderNode folerNode=(NamedColumnSetFolderNode)parentElement;
    folerNode.loadChildren();
    Object[] children=folerNode.getChildren();
    if (children != null && children.length > 0) {
      if (!(children[0] instanceof ColumnSet)) {
        return children;
      }
      for (int i=0; i < children.length; i++) {
        ColumnSet columnSet=(ColumnSet)children[i];
        ModelElementKey key=new ModelElementKeyImpl(columnSet);
        if (modelElementCheckedMap.containsKey(key)) {
          currentCheckedModelElement.add(columnSet);
        }
      }
    }
    return ComparatorsFactory.sort(children,ComparatorsFactory.MODELELEMENT_COMPARATOR_ID);
  }
 else   if (parentElement instanceof TdXmlSchema || parentElement instanceof TdXmlElementType) {
    boolean isXmlDocument=parentElement instanceof TdXmlSchema;
    List<? extends ModelElement> modelElements=isXmlDocument ? DqRepositoryViewService.getXMLElements((TdXmlSchema)parentElement) : DqRepositoryViewService.getXMLElements((TdXmlElementType)parentElement);
    Object[] children=XmlElementHelper.clearLeafNode(modelElements).toArray();
    if (children != null && children.length > 0) {
      if (!(children[0] instanceof TdXmlElementType)) {
        return children;
      }
      for (int i=0; i < children.length; i++) {
        TdXmlElementType xmlElement=(TdXmlElementType)children[i];
        ModelElementKey key=new ModelElementKeyImpl(xmlElement);
        if (modelElementCheckedMap.containsKey(key)) {
          currentCheckedModelElement.add(xmlElement);
        }
      }
    }
    return children.length == 0 ? null : children;
  }
  return super.getChildren(parentElement);
}