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
updateItem(item, newElement);
                }
            }
        }
        
        if (min < elementChildren.length) {
            for (int i = min; i < elementChildren.length; ++i) {
                createTreeItem(widget, elementChildren[i], i);
            }
            
            
            
            if (expanded.size() > 0) {
                
                items = getChildren(widget);
                for (int i = min; i < elementChildren.length; ++i) {
                    
                    
                    
                    
                    
                    
                    if (expanded.containsKey(elementChildren[i])) {
                        setExpanded(items[i], true);
                    }
                }
            }
        }
        
        if (widget == tree && oldCnt == 0 && getItemCount(tree) != 0) {