+ private void removeNullValueFromChildren(){
+ try {
+ if (childNodes.contains(null)){
+ while(childNodes.contains(null)){
+ childNodes.remove(null);
+ }
+ }
+ this.updateSortIndex(0);
+ } catch (LazyInitializationException e) {
+ logger.info("Cannot clean up uninitialized children without a session, skipping.");
+ }
+ }
+