fixes multiple NPE problems with Tree. fixes calls to JTree's getLastSelectedPathComponent, getSelectionPaths, getClosestPathForLocation, getEditingPath. Also rectifies return type of editingPath.