Bug 130976 [Viewers] Error is calculation of parent path when calling TreePathViewerSorter
There is an error in the parent path calculation in AbstractTreeViewer#getSortedChildren. If the input of the viewer is passed, a tee path of length one is passed to the sorter but a null should be passed (as mentioned in the method spec). I will attach a patch.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
return elements;
	}
	/**
     * Create the new elements in the parent widget. If the
     * child already exists do nothing.
     * @param widget
     * @param elements Sorted list of elements to add.
     */
    private void createAddedElements(Widget widget, Object[] elements) {
		if(elements.length == 1){
			if (equals(elements[0], widget.getData())) {
				return;
			}
		}
		
		ViewerSorter sorter = getSorter ();
		TreePath parentPath = internalGetSorterParentPath(widget, sorter);
		Item[] items = getChildren(widget);
		
		 
		
		int lastInsertion = 0;		
		
		
		if(items.length == 0){
			for (int i = 0; i < elements.length; i++) {
				createTreeItem(widget, elements[i], -1);		
			}
			return;
		}