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
}
            internalCollectExpandedItems(result, item);
        }
    }
    /**
     * Tries to create a path of tree items for the given element or tree path.
     * This method recursively walks up towards the root of the tree and in the
     * case of an element (rather than a tree path) assumes that
     * <code>getParent</code> returns the correct parent of an element.
     * 
     * @param elementOrPath
     *           the element
     * @param expand
     *           <code>true</code> if all nodes on the path should be
     *           expanded, and <code>false</code> otherwise
     * @return Widget
     */
    protected Widget internalExpand(Object elementOrPath, boolean expand) {
        if (elementOrPath == null) {
			return null;
		}
        Widget w = internalGetWidgetToSelect(elementOrPath);
        if (w == null) {
            if (equals(elementOrPath, getRoot())) { 
                return null;
            }
            
            Object parent = getParentElement(elementOrPath);
            if (parent != null) {
                Widget pw = internalExpand(parent, false);